toBool property

Converter<bool> toBool

Converts '1', 'true', and 'TRUE' to true.

Implementation

static Converter<bool> get toBool =>
    (s) => (s == '1' || s == 'true' || s == 'TRUE');