EventRule<T> class

An EventBus Subscriber

EventRule subscribe to EventBus's Event to call corresponding EventListener's callbacks.

Constructors

EventRule(Event<T> event, {required List<EventListener<T>> targets})
An EventBus Subscriber

Properties

event Event<T>
An Event to which this EventRule is subscribed to.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
To prevent memory leak, cancel the subscription once there is no need for this EventRule
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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