restoreState method
Implementation
@visibleForTesting
// Restores the logic block's state without going through the normal lifecycle
// ignore: public_member_api_docs
void restoreState(Object state) {
if (_value != null) {
throw StateError(
'Cannot restore a state once the logic block is already running.',
);
}
_restoredState = state as TState;
}