MutableSubmitState class

Implemented types

Constructors

MutableSubmitState({required bool inProgress, required Future<T> run<T>(Future<T> block(), {bool isRetryable})})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inProgress bool
final
run Future<T> Function<T>(Future<T> block(), {bool isRetryable})
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
runSimple<T, E>({FutureOr<bool> shouldSubmit()?, FutureOr<void> afterShouldNotSubmit()?, FutureOr<void> beforeSubmit()?, required Future<T> submit(), FutureOr<void> afterSubmit(T)?, FutureOr<E?> mapError(Object)?, FutureOr<void> afterKnownError(E)?, FutureOr<void> afterError()?, bool isRetryable = true, bool skipIfInProgress = false}) Future<void>
Simplified and opinionated version of run that supports many common cases.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited