isBool property
bool
isBool
Checks whether a String is a bool
Implementation
bool get isBool {
if (isNotNullOrEmpty) {
return (this == 'true' || this == 'false');
} else {
return false;
}
}
Checks whether a String is a bool
bool get isBool {
if (isNotNullOrEmpty) {
return (this == 'true' || this == 'false');
} else {
return false;
}
}