EventChannel<T> constructor
EventChannel<T> ({
- int? retainedUpdates = 8,
Creates a channel that keeps unread events for at most retainedUpdates
calls to update, or indefinitely when retainedUpdates is null.
Implementation
EventChannel({this.retainedUpdates = 8})
: assert(
retainedUpdates == null || retainedUpdates >= 1,
'retainedUpdates must be at least 1 (or null for unbounded).',
);