clear method

void clear()

Implementation

void clear() {
  _index = 0;
  _map = <K, int>{};
}