RemoterMutationUtils<T, S> class
Represents class for helper methods which is passed to builder function for RemoterMutation
Constructors
-
RemoterMutationUtils({required FutureOr mutate(S param), required FutureOr reset(), required RemoterMutationData<
T> getData()}) - Represents class for helper methods which is passed to builder function for RemoterMutation
Properties
-
getData
→ RemoterMutationData<
T> Function() -
Get current state object of mutation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mutate → FutureOr Function(S param)
-
Calls
execute
function with givenparam
final - reset → FutureOr Function()
-
Function to reset state back to RemoterStatus.idle and clear data
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited