getState method

  1. @protected
  2. @visibleForTesting
Result<State>? getState()
inherited

Obtains the current state, of null if the provider has yet to initialize.

The returned object will contain error information, if any. This function does not cause the provider to rebuild if it someohow was outdated.

This is not meant for public consumption. Instead, public API should use readSelf.

Implementation

@protected
@visibleForTesting
Result<State>? getState() => _state;