Callback<T extends Function> class
base
Represents a callback with a specific function type.
This class contains the id, nativeCallable, and completer for the callback.
Constructors
-
Callback(NativeCallable<
T> nativeCallable, Completer<AskarCallbackResult> completer, int id) - Constructs an instance of Callback.
Properties
-
completer
→ Completer<
AskarCallbackResult> -
The completer for the callback result.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The ID of the callback.
final
-
nativeCallable
→ NativeCallable<
T> -
The native callable function for the callback.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handleResult(
int initialResult) → Future< AskarCallbackResult> - Handles the result of the callback.
-
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