getAsync method

Future<T?> getAsync()

Returns a Future<T> with the value.

Implementation

Future<T?> getAsync() async {
  if (isLoaded) return _value;
  await _future;
  return _value;
}