FutureStoreExtension<S> extension

on

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 through onValue and onError reducers. These functions receive the current state and resolution of the Future to produce a new state.