cancel method
Prevents any new items from being added to the buffer and performs any optional cleanup.
Implementation
FutureOr<void> cancel() => _cancel(false);
Prevents any new items from being added to the buffer and performs any optional cleanup.
FutureOr<void> cancel() => _cancel(false);