undoState method
Undo to the last valid state (isWaiting and hasError are ignored)
Implementation
@override
void undoState() {
final snap = undoRedoPersistState?.undoState();
if (snap == null) {
return;
}
_snapState = snap.copyWith(oldSnapState: _snapState);
notify();
}