undoState method

  1. @override
void undoState()
override

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();
}