updateMapEntry<K, V> method Null safety

EmpireStateChanged<V> updateMapEntry<K, V>(
  1. K key,
  2. V? originalValue,
  3. V? nextValue,
  4. {String? propertyName}
)

A factory method which creates a single EmpireStateChanged object with a description describing what changes were made to a map entry, including for which key

Implementation

static EmpireStateChanged<V> updateMapEntry<K, V>(
    K key, V? originalValue, V? nextValue,
    {String? propertyName}) {
  return EmpireStateChanged<V>(nextValue, originalValue,
      propertyName: propertyName,
      description: 'Update Map Value For Key: $key');
}