restoreState method
Restore the state of the cell.
state
is a value, previously returned by dumpState, encoding the state
of the cell. This method should restored the state of the cell to the
state described by state
coder
is the CellValueCoder object which should be used for decoding
the cell's value.
Implementation
@override
void restoreState(Object? state, CellValueCoder coder) {
if (state != null) {
final restoredState = this.state ?? createState() as PrevValueState;
restoredState.restoreState(state, coder);
_restoredState = restoredState;
}
}