Converts a String to a bool. To return true, the trimmed lowercase string must be "true".
true
bool parseBool() => toLowerCase().trim() == "true";