EventBusReceiver class abstract
Base class that subscribe to event bus events
- Implementers
Constructors
Properties
Methods
-
checkEventWasReceived(
Type event, {int? count}) → bool - Returns true if underlying events list contains given event name
-
cleanupReceivedEvents(
) → void - Cleans collection of received events
-
disposeSub(
) → void - Closes underlying stream subscription for EventBus
-
initializeSub(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
T> (EventBusSubscriber< T> processor, {bool reactsToPause = false, bool firesAfterResume = true}) → EventBusSubscriber - Subscribes to event of given type
-
pauseEventBusSubscription(
) → void - Sets paused flag to false so events stop processing
-
resumeEventBusSubscription(
{bool sendAllEventsReceivedWhilePause = true}) → void - Resumes events processing
-
subscribe(
) → List< EventBusSubscriber> - Map of EventBus events and function to be executed for this events
-
toString(
) → String -
A string representation of this object.
inherited
-
waitTillEventIsReceived(
Type event, {int? count, Duration timeout = const Duration(seconds: 1)}) → Future< void> - Waits till given event is received by this instance
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited