BaseOfflineAction class
Base offline action implementation
- Implemented types
Constructors
-
BaseOfflineAction({String? id, required String type, required Map<
String, dynamic> payload, ConflictStrategy conflictStrategy = ConflictStrategy.serverWins, DateTime? createdAt, int retryCount = 0, required Future executeFunction()})
Properties
- conflictStrategy → ConflictStrategy
-
final
- createdAt → DateTime
-
final
- executeFunction → Future Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
payload
→ Map<
String, dynamic> -
final
- retryCount ↔ int
-
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
final
Methods
-
execute(
) → Future -
Execute the action
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialize to JSON
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited