MutationController<TData, TVariables, TError> class

Controller that provides access to mutation state and actions

Constructors

MutationController.new({required MutationState<TData, TError> state, required Future<void> mutate(TVariables variables), required VoidCallback reset})
const

Properties

data → TData?
no setter
error Object?
no setter
hashCode int
The hash code for this object.
no setterinherited
isError bool
no setter
isIdle bool
no setter
isLoading bool
no setter
isSuccess bool
no setter
mutate Future<void> Function(TVariables variables)
final
reset VoidCallback
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state MutationState<TData, TError>
final
status MutationLoadingState
no setter

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