state property

AsyncValue<State> get state

Obtains the state currently exposed by this provider.

Mutating this property will notify the provider listeners.

Cannot be called while a provider is creating, unless the setter was called first.

Will return AsyncLoading if used during the first initialization. Subsequent initializations will contain an AsyncValue with the previous state and AsyncValueX.isRefreshing/AsyncValueX.isReloading set accordingly.

Implementation

AsyncValue<State> get state;
set state (AsyncValue<State> newState)

Implementation

set state(AsyncValue<State> newState);