Disposer class

Mixed-in types
Annotations

Constructors

Disposer()

Properties

hashCode int
The hash code for this object.
no setterinherited
listenables List<Listenable>
no setterinherited
listeners List<void Function()>
Not using VoidCallback because of https://github.com/dart-lang/mockito/issues/579
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAutoDisposeListener(Listenable? listenable, [VoidCallback? listener, String? id]) → void
Add a listener to a Listenable object that is automatically removed when cancel is called.
inherited
autoDisposeFocusNode(FocusNode? node) → void
Track a focus node that will be automatically disposed on dispose.
inherited
autoDisposeStreamSubscription(StreamSubscription subscription) → void
Track a stream subscription to be automatically cancelled on dispose.
inherited
callOnceWhenReady<T>({required VoidCallback callback, required ValueListenable<T> trigger, required bool readyWhen(T triggerValue)}) → void
Runs callback when trigger's value satisfies the readyWhen function.
inherited
cancelFocusNodes() → void
Cancel all focus nodes added.
inherited
cancelListener(VoidCallback? listener) → void
Cancels a single listener, if present.
inherited
cancelListeners({List<String> excludeIds = const <String>[]}) → void
Cancel all listeners added.
inherited
cancelStreamSubscriptions() → void
Cancel all stream subscriptions added.
inherited
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