toBool method

bool toBool()

Returns true if the validate() method returns 'true', otherwise returns false.

Implementation

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