AsyncValue<T> constructor
AsyncValue<T> (
- Future<
T> future
Implementation
AsyncValue(Future<T> future) {
_future = future.then((v) => _onLoad(v)!, onError: _onError);
}
AsyncValue(Future<T> future) {
_future = future.then((v) => _onLoad(v)!, onError: _onError);
}