Disposer class

Constructors

Disposer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAutoDisposeListener(Listenable? listenable, [VoidCallback? listener]) → void
Add a listener to a Listenable object that is automatically removed when cancel is called.
autoDisposeStreamSubscription(StreamSubscription subscription) → void
Track a stream subscription to be automatically cancelled on dispose.
cancelListeners() → void
Cancel all listeners added.
cancelStreamSubscriptions() → void
Cancel all stream subscriptions added.
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