DisposableClient class

DisposableClient is used at Client side and DisposableToken at User side.

Available Extensions

Constructors

DisposableClient({dynamic parent})
Propagates thread notifications with possibility to cancel operations. 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. After this method call is object typically unusable and ready for GC. Can be called multiple times!
inherited
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