toDouble static method

double toDouble(
  1. dynamic v
)

Implementation

static double toDouble(dynamic v) {
  if (v is double) return v;
  if (v is int) return v.toDouble();
  return double.parse(v);
}