removedFromMap<K, V> method Null safety

EmpireStateChanged<V> removedFromMap<K, V>(
  1. K key,
  2. V removedValue,
  3. {String? propertyName}
)

A factory method which creates a single EmpireStateChanged object with a description describing what key/value was removed from the map

Implementation

static EmpireStateChanged<V> removedFromMap<K, V>(K key, V removedValue,
    {String? propertyName}) {
  final removedEntry = MapEntry(key, removedValue);
  return EmpireStateChanged<V>(null, removedValue,
      propertyName: propertyName,
      description: 'Removed From Map: $removedEntry');
}