toBool property
bool
get
toBool
toBool: convert a string to bool (1 == true, 0 == false)
Implementation
bool get toBool {
if (isNull) return false;
if (this == 0) return false;
if (this == 1) return true;
return false;
}