Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Flutter
  2. dart:core
  3. bool class
bool

bool classfinal

The reserved wordstrue andfalse denote objects that are the only twoinstances of this class.

It is a compile-time error for a class to attempt to extend or implementbool.

Available extensions

Constructors

bool.fromEnvironment(Stringname, {booldefaultValue =false})
Boolean value forname in the compilation configuration environment.
const
factory
bool.hasEnvironment(Stringname)
Whethername is declared in the compilation configuration environment.
const
factory

Properties

addressPointer<Never>

Available onbool, provided by theBoolAddress extension

The memory address of the underlying data.
getter/setter pair
hashCodeint
The hash code for this object.
no setteroverride
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited
toJSJSBoolean

Available onbool, provided by theBoolToJSBoolean extension

Converts thisbool to aJSBoolean.
no setter

Methods

noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
Returns either"true" fortrue and"false" forfalse.
override

Operators

operator &(boolother)bool
The logical conjunction ("and") of this andother.
operator ==(Objectother)bool
The equality operator.
inherited
operator ^(boolother)bool
The logical exclusive disjunction ("exclusive or") of this andother.
operator |(boolother)bool
The logical disjunction ("inclusive or") of this andother.

Static Methods

parse(Stringsource, {boolcaseSensitive =true})bool
Parsessource as an, optionally case-insensitive, boolean literal.
tryParse(Stringsource, {boolcaseSensitive =true})bool?
Parsessource as an, optionally case-insensitive, boolean literal.
  1. Flutter
  2. dart:core
  3. bool class
dart:core library

[8]ページ先頭

©2009-2025 Movatter.jp