BooleanUtils class abstract
Util class for operations on booleans.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
and(
List< bool> list) → bool -
Checks if all values of
list
are true. If sotrue
is returned otherwisefalse
is returned. -
fromInt(
int i) → bool -
Transforms a int into a bool. If
i
is1
true
is returned otherwise0
. -
fromString(
String str) → bool -
Transforms a String into a bool. If
str
is'true'
,true
will be returned otherwisefalse
-
or(
List< bool> list) → bool -
Checks if any of the values in
list
are true. If sotrue
is returned otherwisefalse
is returned. -
toInt(
bool b) → int -
Transforms a bool into a int. If
b
istrue
1
is returned otherwise0
. -
xor(
List< bool> list) → bool -
Performs a xor operation on the values in
list
and returns the result.