add method

void add(
  1. String key
)

Shows an interest for a key.

Implementation

void add(String key) {
  final int result = (_interestCounts[key] ?? 0) + 1;
  _interestCounts[key] = result;
}