parseBoolean static method
Parses a string value to become a boolean.
Returns true
if the value is equal to 'true', 'TRUE', 'True', or '1'.
Implementation
static bool parseBoolean(String value) {
return value == 'true' ||
value == 'TRUE' ||
value == 'True' ||
value == '1';
}