FutureStoreExtension<S> extension
- on
-
- Store<
S>
- Store<
Methods
-
addFuture<
T> (Future< T> future, {S onValue(S state, T value)?, S onError(S state, Object error, StackTrace stackTrace)?}) → Future<S> -
Adds an
future
that asynchronously contributes to the state throughonValue
andonError
reducers. These functions receive the current state and resolution of the Future to produce a new state.