orElseGeAsync method
Returns the value of this Future (T
). If the value is null,
it will return the value returned by defaultGetter
.
Implementation
FutureOr<T> orElseGeAsync(FutureOr<T> Function() defaultGetter) =>
then((value) => value ?? defaultGetter());