getState method

  1. @internal
Result<StateT>? getState()

Obtains the current state, or 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 somehow was outdated.

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

Implementation

@internal
Result<StateT>? getState() => _state;