addCounts method

void addCounts(
  1. Map<E, int> counts
)

Adds the given values with counts.

For example, addCounts({'example': 2}) would add 'example' to the set and require it to be removed twice to actually be removed from the set.

Implementation

void addCounts(Map<E, int> counts) {
  _counts.addAll(counts);
  _inner.addAll(counts.keys);
}