addValue method

void addValue(
  1. K key,
  2. V value
)

Implementation

void addValue(K key, V value) {
  final updatedMap = Map<K, V>.from(value as Map);
  updatedMap[key] = value;
  value = updatedMap as V;
}