Disposable class

Represents an object able to release it's resources.

Implementers

Constructors

Disposable(DisposeFunc disposeFunc)
Creates a Disposable from a callback.
factory
Disposable.compose(Iterable<DisposeFunc> disposeFuncs)
Composes many DisposeFunc into one.
factory
Disposable.fromDisposables(Iterable<Disposable> disposables)
Composes many Disposable instances to be disposed together.
factory

Properties

isDisposed → bool
Whether this Disposable has already released its resources.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispose() → void
Releases this Disposable resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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