ActionDisposable class

A Disposable with a callback that is called exactly once on disposal.

Implemented types

Constructors

ActionDisposable(Callback0 callback)

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Returns true, if this resource has been disposed.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the resource.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose(Callback0 value) → void
toString() → String
A string representation of this object.
inherited

Operators

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