dispose method

  1. @override
void dispose()
override

Dispose the state

Implementation

@override
void dispose() {
  if (_snapState.oldSnapState == null) {
    return;
  }
  undoRedoPersistState?.persistOnDispose(_snapState.state);
  shouldRecreateTheValue = null;
  super.dispose();
}