SyncTask<S, E extends Object> class
A task to call FFI function, but it is synchronous.
Normally you do not manually create instances of this task (or its brothers), but instead it is generated automatically by the codegen.
Constructors
- SyncTask({required WireSyncRust2Dart callFfi(), required S parseSuccessData(dynamic), required E parseErrorData(dynamic)?, required TaskConstMeta constMeta, required List argValues, required dynamic hint})
-
Create a new task.
const
Properties
-
argMap
→ Map<
String, dynamic> -
Arguments to be passed into the function call, provided in the format of a Map
read-onlyinherited
- argValues → List
-
Arguments to be passed into the function call.
finalinherited
- callFfi → WireSyncRust2Dart Function()
-
The underlying function to call FFI function, usually the generated wire function
final
- constMeta → TaskConstMeta
-
Metadata that does not change across different method calls.
finalinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hint → dynamic
-
Transparent hint given by the caller of the method
finalinherited
- parseErrorData → (E Function(dynamic)?)
-
Parse the returned error data from the underlying function
finalinherited
- parseSuccessData → S Function(dynamic)
-
Parse the returned data from the underlying function
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
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