addedToMap<K, V> method Null safety

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

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

Implementation

static EmpireStateChanged addedToMap<K, V>(K key, V newValue,
    {String? propertyName}) {
  final newEntry = MapEntry(key, newValue);
  return EmpireStateChanged(newEntry, null,
      propertyName: propertyName, description: 'Added To Map: $newEntry');
}