parseBool method

bool parseBool()

Converts a String to a bool. To return true, the trimmed lowercase string must be "true".

Implementation

bool parseBool() => toLowerCase().trim() == "true";