toBool property

bool? get toBool

Try parse a bool value. See asBool to convert strings into bool in a more efficient way

Implementation

bool? get toBool => bool.tryParse(this, caseSensitive: false);