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