FutureNullableExtension<T extends Object> extension

on

Methods

orElseAsync(T defaultValue) Future<T>

Available on Future<T?>, provided by the FutureNullableExtension extension

Returns the value of this Future (T). If the value is null, it will return the defaultValue.
orElseGeAsync(FutureOr<T> defaultGetter()) Future<T>

Available on Future<T?>, provided by the FutureNullableExtension extension

Returns the value of this Future (T). If the value is null, it will return the value returned by defaultGetter.