tryParseDoubleFromMap function

double? tryParseDoubleFromMap(
  1. Map<dynamic, String> map,
  2. String key
)

Parses key from map as an double literal and return its value.

Implementation

double? tryParseDoubleFromMap(Map<dynamic, String> map, String key) {
  final value = map[key];
  if (value == null) {
    return null;
  }

  return double.tryParse(value);
}