BooleanUtils class abstract

Util class for operations on booleans.

Constructors

BooleanUtils()

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 so true is returned otherwise false is returned.
fromInt(int i) bool
Transforms a int into a bool. If i is 1 true is returned otherwise 0.
fromString(String str) bool
Transforms a String into a bool. If str is 'true', true will be returned otherwise false
or(List<bool> list) bool
Checks if any of the values in list are true. If so true is returned otherwise false is returned.
toInt(bool b) int
Transforms a bool into a int. If b is true 1 is returned otherwise 0.
xor(List<bool> list) bool
Performs a xor operation on the values in list and returns the result.