Boolean constructor
const
Boolean(
- bool _value
Creates a Boolean with the specified value.
value the boolean value to wrap
A wrapper class for bool that provides Java-like functionality and methods.
This class wraps Dart's primitive bool type and provides additional utility methods similar to Java's Boolean class.
Example usage:
Boolean a = Boolean(true);
Boolean b = Boolean.valueOf(false);
Boolean c = Boolean.parseBoolean("true");
print(a.toString()); // "true"
print(a.compareTo(b)); // 1 (true > false)
Implementation
const Boolean(this._value);