toBoolean method

bool toBoolean()

Returns true if 'this' is "true", otherwise - false

Implementation

bool toBoolean() => this?.toLowerCase() == "true";