toBool function
Implementation
bool toBool(dynamic value) {
if (value == 1 || value == true || value == "true") {
return true;
}
return false;
}
bool toBool(dynamic value) {
if (value == 1 || value == true || value == "true") {
return true;
}
return false;
}