tryParseDoubleFromMap function Null safety

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) =>
    map.containsKey(key) ? double.tryParse(map[key]!) : null;