BaseTask<S, E extends Object> class
abstract
Base class for various kinds of tasks. Note: Normally you do not manually create instances of this task (or its brothers), but instead it is generated automatically by the codegen.
- Implementers
- Annotations
-
- @immutable
Constructors
- BaseTask({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-only
- argValues → List
-
Arguments to be passed into the function call.
final
- constMeta → TaskConstMeta
-
Metadata that does not change across different method calls.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hint → dynamic
-
Transparent hint given by the caller of the method
final
- parseErrorData → (E Function(dynamic)?)
-
Parse the returned error data from the underlying function
final
- parseSuccessData → S Function(dynamic)
-
Parse the returned data from the underlying function
final
- 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