toBool method
Returns true if the validate() method returns 'true', otherwise returns false.
Implementation
bool toBool() => validate() == 'true';
Returns true if the validate() method returns 'true', otherwise returns false.
bool toBool() => validate() == 'true';