BooleanUtils class

Utility library to provide helper methods for Dart boolean.

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 Properties

FALSE String
The false String "false"
final
TRUE String
The true String "true"
final

Static Methods

and(List<bool> array) bool
Performs an 'and' operation on a set of booleans.
booleanValues() List<bool>
Returns a new list of possible values (like an enum would).
compare(bool x, bool y) int
Compares two boolean values
or(List<bool> array) bool
Performs an 'or' operation on a set of booleans.
toBoolean(int value) bool
Converts an int to a boolean using the convention that zero is false, everything else is true.
toBooleanDefaultIfNull(bool? value, bool valueIfNull) bool
Converts a Boolean to a boolean handling null.
toBooleanObject(String? str) bool
Converts a String to a Boolean.
toBooleanString(bool value) String
Converts a boolean to a String returning one of the input Strings.
toInteger(bool bool) int
Converts a boolean to an int using the convention that true is 1 and false is 0
xor(List<bool> array) bool
Performs an xor on a set of booleans.