orElseGetAsync abstract method

Future<T> orElseGetAsync(
  1. Future<T> supply()
)

Returns this Optional's value, if present. Otherwise, returns the result of calling supply() asynchronously.

Implementation

Future<T> orElseGetAsync(Future<T> Function() supply);