MutationState<ReturnType> class
MutationState holds the current state of an InfiniteQuery.
Should not be instantiated manually. Instead should be read from Mutation.
Constructors
- MutationState({ReturnType? data, QueryStatus status = QueryStatus.initial, dynamic error})
-
MutationState holds the current state of an InfiniteQuery.
const
Properties
- data → ReturnType?
-
Response of the MutationQueryCallback.
final
- error → dynamic
-
Current error of the MutationQueryCallback.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → QueryStatus
-
Status of the MutationQueryCallback.
final
Methods
-
copyWith(
{ReturnType? data, QueryStatus? status, dynamic error}) → MutationState< ReturnType> - Creates a copy of the current MutationState with the given filed replaced.
-
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.
override