AsyncValue<T> constructor

AsyncValue<T>(
  1. Future<T> future
)

Implementation

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