DisposableClient class
DisposableClient is used at Client
side and DisposableToken at Model
side.
- Implemented types
- Available extensions
Constructors
- DisposableClient({dynamic parent})
-
parent
- Parent object of this client.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCancel ↔ VoidCallback?
-
Callback when token is canceled and
finish
called.getter/setter pairinherited - onDispose ↔ VoidCallback?
-
Callback when token is disposed and
finish
called.getter/setter pairinherited - onFinish ↔ VoidCallback?
-
Callback when token is finished and
finish
called.getter/setter pairinherited - parent → dynamic
-
Parent of this disposer.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asToken(
{dynamic data}) → DisposableToken -
Creates DisposableToken that can be used by
Client
. -
cancel(
) → void -
Cancels this token and notifies
onCancel
listener.inherited -
dispose(
) → void -
Used to clear and dispose object.
Unsubscribe and close all sources. Prepare object for GC.
Can be called multiple times!
inherited
-
disposeWith(
DisposeObserver observer) → void -
Available on Disposable, provided by the DisposableExt extension
Register for dispose with givenobserver
. -
finish(
) → void -
Finishes this token and notifies
onFinish
listener.inherited -
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