debounceAfterFirst method
Emits the FIRST value immediately, then debounces the rest by duration.
The right shape for a database .watch() stream that emits current state
on subscribe: the initial render is instant, while a following burst of
writes is coalesced to its last value. Single-subscription; the late
subscriber still gets that first value.
Audited: 2026-06-12 11:26 EDT
Implementation
Stream<T> debounceAfterFirst(Duration duration) =>
_debounce(this, duration, emitFirstImmediately: true);