restoreState method

  1. @protected
  2. @mustCallSuper
void restoreState(
  1. int index
)
inherited

Implementation

@protected
@mustCallSuper
void restoreState(int index) {
  final encoded = history[index];
  try {
    _restoring = true;
    final state = (decode ?? jsonDecode)(encoded);
    _setData(state);
  } finally {
    _restoring = false;
  }
}