tryCastToBool method
Implementation
bool? tryCastToBool() {
if (this == null) {
return null;
}
if (this is bool) {
return this as bool;
}
return this.toString().trim().toBoolean();
}
bool? tryCastToBool() {
if (this == null) {
return null;
}
if (this is bool) {
return this as bool;
}
return this.toString().trim().toBoolean();
}