toDouble static method
Implementation
static double? toDouble(dynamic value) {
if (value == null || value is double) {
return value;
}
if (value is int) {
return value.toDouble();
}
String str = _toString(value)!;
return double.parse(str);
}