EventsEmitter<T> class

Inheritance

Constructors

EventsEmitter({bool listenSynchronized = false})

Properties

disposeFuncCount → int
no setterinherited
emitter → EventsEmitter<T>
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
no setterinherited
listeners → List<StreamSubscription<T>>
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
streamCtrl → StreamController<T>
final
synchronized → bool
finalinherited

Methods

cancelAll() → Future<void>
inherited
dispose() → Future<bool>
inherited
listen(FutureOr<void> onEvent(T)) → CancelListenFunc
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on<E>(FutureOr<void> then(E), {bool filter(E)?}) → CancelListenFunc
inherited
once<E>(FutureOr<void> then(E), {bool filter(E)?}) → CancelListenFunc?
convenience method to listen & filter a specific event type, just once.
inherited
onDispose(OnDisposeFunc func) → void
inherited
toString() → String
A string representation of this object.
inherited
waitFor<E>({required Duration duration, bool filter(E)?, FutureOr<E> onTimeout()?}) → Future<E>
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited