getDoubleOrNull method
Implementation
double? getDoubleOrNull(Object? key) {
final value = this[key];
if (value is double) return value;
if (value is num) return value.toDouble();
if (value is String) return double.tryParse(value.trim());
return null;
}