DisposableCallbackBase class

A Disposable Callback base that can be extended from or used as a mixin.

Disposable callbacks allow the developer to pass in a callback but still maintain control over the lifecycle of the callback. Ex: Pass a callback to a future but the future completes after the object no longer needs the result. Being able to use noSuchMethod would simplify the need for multiple classes.

Implemented types
Implementers

Constructors

DisposableCallbackBase()

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.
override
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