Mutation<R> class
- Available Extensions
Constructors
-
Mutation(MutationKey<
R> key, {MutationInitialDataCallback<R> ? initialData, MutationMutateCallback<R> ? initialMutate, MutationOnUpdateInitializedCallback? onUpdateInitialized, MutationOnUpdateDataCallback<R> ? onUpdateData, MutationOnUpdateErrorCallback? onUpdateError, MutationOnUpdateLoadingCallback? onUpdateLoading, MutationOnCloseCallback<R> ? onClose})
Properties
- data → R?
-
no setter
-
dataList
→ List<
R> -
no setter
- error → Object?
-
no setter
- hasData → bool
-
no setter
- hasError → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAttached → bool
-
no setter
- isClosed → bool
-
no setter
- isEmpty → bool
-
no setter
- isInitilized → bool
-
no setter
- isLoading → bool
-
no setter
-
key
→ MutationKey<
R> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → bool -
clearData(
) → bool -
clearError(
) → bool -
close(
) → void -
forceInitialMutate(
) → Future< bool> -
forceInitialMutateNow(
) → Future< bool> -
mutate(
MutationMutateCallback< R> callback, {bool append = false}) → Future<bool> -
mutateNow(
FutureOr< R> future, {bool append = false}) → Future<R> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
{MutationOnUpdateInitializedCallback? onUpdateInitialized, MutationOnUpdateDataCallback< R> ? onUpdateData, MutationOnUpdateErrorCallback? onUpdateError, MutationOnUpdateLoadingCallback? onUpdateLoading, MutationOnCloseCallback<R> ? onClose, bool attach = true}) → MutationCancelFunction -
toString(
) → String -
A string representation of this object.
override
-
tryMutate(
FutureOr< R?> future, {bool append = false}) → Future<R?> -
updateInitialMutate(
MutationMutateCallback< R> callback) → Future<bool>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited