tryCastToNum method
Implementation
num? tryCastToNum() {
if (this == null) {
return null;
}
if (this is num) {
return this as num;
}
return num.tryParse(this.toString().trim());
}
num? tryCastToNum() {
if (this == null) {
return null;
}
if (this is num) {
return this as num;
}
return num.tryParse(this.toString().trim());
}