add method
void
add(
- T entry
Adds an entry to the bucket.
If maxStorage gets exceeded, the first added entries are removed.
This method respects DebugOverlay.enabled.
Implementation
void add(T entry) {
if (!DebugOverlay.enabled) return;
if (allowDuplicates || _entries.none((e) => e == entry)) {
_entries.add(entry);
_trimBucket();
notifyListeners();
}
}