recover method

void recover()
inherited

Populates the internal state storage with the latest state.

Implementation

void recover() {
  try {
    final stateJson = storage.read(storageToken) as Map<dynamic, dynamic>?;
    _state = stateJson != null ? _fromJson(stateJson)! : super.state;
  } catch (error, stackTrace) {
    onError(error, stackTrace);
    _state = super.state;
  }
}