add method
void
add(
- K priority,
- V value
Enqueues value under priority, creating the queue if needed.
Implementation
void add(K priority, V value) {
_queues.putIfAbsent(priority, () => []).add(value);
}