toBool method

bool toBool()

Converts the string to a boolean value based on 'true' or 'false' string.

Implementation

bool toBool() => validate().toLowerCase() == 'true';