addedToMap<K, V> static method

CurrentStateChanged addedToMap<K, V>(
  1. K key,
  2. V newValue, {
  3. String? propertyName,
  4. int? sourceHashCode,
})

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

Implementation

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