clear method

  1. @override
void clear()
override

Removes all pairs from the map.

After this, the map is empty.

Implementation

@override
void clear() {
  if (keys.length > 0) {
    _dirty = true;
    if (emitDetailedChanges)
      for (var key in _map.keys)
        _changes.add(MapModification.remove(key, _map[key]));
    _map.clear();
  }
}