toNum method
Converts the string into a numeric value.
Throws an error if the string is not a valid number.
Implementation
num toNum() => num.parse(this);
Converts the string into a numeric value.
Throws an error if the string is not a valid number.
num toNum() => num.parse(this);