pull static method

dynamic pull(
  1. Map map,
  2. String key, [
  3. dynamic defaultValue
])

Returns the value at key and removes it from map.

Implementation

static dynamic pull(Map map, String key, [dynamic defaultValue]) {
  final value = get(map, key, defaultValue);
  forget(map, key);
  return value;
}