parseBool method
Implementation
bool? parseBool() {
if (this == null) return null;
if (this!.toLowerCase() == 'true') {
return true;
} else if (this!.toLowerCase() == 'false') {
return false;
} else {
return null;
}
}
bool? parseBool() {
if (this == null) return null;
if (this!.toLowerCase() == 'true') {
return true;
} else if (this!.toLowerCase() == 'false') {
return false;
} else {
return null;
}
}