valueOfString static method
Returns a Boolean instance from a string.
str
the string representation
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
static Boolean valueOfString(String str) {
return parseBoolean(str);
}