tryParseBoolean function
Implementation
bool? tryParseBoolean(dynamic target) {
if (target == null) {
return null;
}
if (target is bool) {
return target;
}
return target.toBool();
}
bool? tryParseBoolean(dynamic target) {
if (target == null) {
return null;
}
if (target is bool) {
return target;
}
return target.toBool();
}