parseDouble static method
Implementation
static double? parseDouble(dynamic value) {
if (value == null) return null;
if (value is double) {
return value;
} else if (value is String) {
return double.tryParse(value);
} else if (value is int) {
return value.toDouble();
}
return null;
}