EventManagerMixin mixin

Adds framework-independent event subscription ownership to any object.

A lifecycle-aware object must call disposeEventManager from its own cleanup callback. After that, EventBusManager.owner(this) listeners are cancelled automatically.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEventManagerDisposed → bool
Whether this object's event subscriptions have been disposed.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

disposeEventManager() → void
Cancels every subscription registered through owner(this).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerEventSubscription(EventSubscriptionHandle subscription) → void
Registers subscription for lifecycle-managed cancellation.
override
toString() → String
A string representation of this object.
inherited
unregisterEventSubscription(EventSubscriptionHandle subscription) → void
Removes an already cancelled subscription from lifecycle management.
override

Operators

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