stringToDouble static method

double stringToDouble(
  1. dynamic value
)

Implementation

static double stringToDouble(dynamic value) {
  if (value is String) {
    return double.parse(value);
  } else {
    return value.toDouble();
  }
}