Disposable mixin

A mixin that provides common dispose functionality.

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
Whether this object has been disposed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDisposeCallback(VoidCallback callback) → void
Add a callback to be executed during disposal.
addSubscription(StreamSubscription subscription) → void
Add a stream subscription to be cancelled during disposal.
dispose() → void
Dispose all resources and mark as disposed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDebounceTimer(Timer timer) → void
Set or update the debounce timer.
throwIfDisposed([String? operation]) → void
Throw if this object has been disposed.
toString() String
A string representation of this object.
inherited

Operators

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