CallResult<T extends NativeType> class
Use this class to register a callback for an async request
Constructors
-
CallResult({required SteamApiCall asyncCallId, required void cb(Pointer<
T> data, bool hasFailed)}) - Creates a CallResult with given parameters to be called after the request is completed. Do not forget to register in order to receive the result
Properties
- asyncCallId ↔ SteamApiCall
-
async call id of the request
latefinal
- callbackId ↔ int
-
callback id of the call result type
T
latefinal -
cb
↔ void Function(Pointer<
T> data, bool hasFailed) -
callback function to be called after the request is completed
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCb(
{required Pointer< Void> data, required bool hasFailed}) → void -
When the request finishes
Dispatcher
calls this function to call your passed cb -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited