reset method

void reset(
  1. Map<K, V>? other
)

Implementation

void reset(Map<K, V>? other) {
  clear();
  addAll(other ?? {});
}