atof method

double atof(
  1. String str
)

Converts a string to a double.

Implementation

double atof(String str) {
  return double.tryParse(str) ?? 0.0;
}