toNum method

num toNum()

Converts the string into a numeric value.

Throws an error if the string is not a valid number.

Implementation

num toNum() => num.parse(this);