toDouble property
double
get
toDouble
Converts the string to a double. Returns null if the conversion fails.
Example:
print('12.34'.toDouble); // Output: 12.34
print('abc'.toDouble); // Output: 0.00
Implementation
double get toDouble => toNum.toDouble();