toBool property

bool get toBool

Parses string as boolean ('true' evaluates to true, else false).

Implementation

bool get toBool => trim().toLowerCase() == 'true';