shift<K, V> method

MapEntry<K, V> shift<K, V>()

Shift the first entry from the map.

Implementation

MapEntry<K, V> shift<K, V>() {
  final key = keys.first;
  final value = this[key];
  removeExact(key: key, value: value);
  return MapEntry(key, value);
}