removeValue method

void removeValue(
  1. K key
)

Implementation

void removeValue(K key) {
  assert(
    value.containsKey(key),
    PulseXErrors.keyNotFoundError(key),
  );
  final updatedMap = Map<K, V>.from(value);
  updatedMap.remove(key);
  value = updatedMap;
}