isBoolean property
bool
get
isBoolean
Checks if the string represents a boolean value.
Returns true if the string is one of: 'true', 'false', '1', or '0',
otherwise returns false.
Example:
'true'.isBoolean; // true
'false'.isBoolean; // true
'1'.isBoolean; // true
'0'.isBoolean; // true
'yes'.isBoolean; // false
Implementation
bool get isBoolean {
return _isBoolean(this);
}