hydrate method

  1. @protected
State? hydrate()

Attempts to restore persisted state and ensures pending writes flush on dispose. Returns null when there is no saved state.

Implementation

@protected
State? hydrate() {
  _registerDispose();
  return _loadState();
}