reset method
void
reset()
Reset the mutation state to idle.
If called while a mutate call is in-flight (e.g. waiting in a retry
backoff window), the retry loop exits cleanly and the mutate future
resolves with null. The mutation remains fully usable afterward.
Implementation
void reset() {
_resetRequested = true;
if (_retryCancelCompleter != null && !_retryCancelCompleter!.isCompleted) {
_retryCancelCompleter!.complete();
_retryCancelCompleter = null;
}
data.value = null;
error.value = null;
status.value = ZenMutationStatus.idle;
_isLoadingNotifier?.value = false;
update();
}