set method

void set(
  1. K key,
  2. int count
)

Sets the counter of key with count.

Implementation

void set(K key, int count) => _get(key).count = count;