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 for
namein the compilation configuration environment.constfactory - bool.hasEnvironment(Stringname)
- Whether
nameis declared in the compilation configuration environment.constfactory
Properties
- address↔Pointer<
Never> Available onbool, provided by theBoolAddress extension
The memory address of the underlying data.getter/setter pair- hashCode→int
- The hash code for this object.no setteroverride
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- toJS→JSBoolean
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"fortrueand"false"forfalse.override
Operators
- operator &(
boolother)→bool - The logical conjunction ("and") of this and
other. - operator ==(
Objectother)→bool - The equality operator.inherited
- operator ^(
boolother)→bool - The logical exclusive disjunction ("exclusive or") of this and
other. - operator |(
boolother)→bool - The logical disjunction ("inclusive or") of this and
other.