Disposable class abstract

A class with a dispose method for cleaning up resources or subscriptions.

Implementers

Constructors

Disposable(DisposeFunction disposeFn)
Creates a simple disposable that just executes disposeFn.
factory

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

dispose() → void
Disposes this disposable and any resources it has open.
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

Constants

Noop → const Disposable
A disposable that does nothing.