FutureOrNullableExtension<T extends Object> extension

on

Methods

orElseAsync(T defaultValue) FutureOr<T>

Available on FutureOr<T?>, provided by the FutureOrNullableExtension extension

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

Available on FutureOr<T?>, provided by the FutureOrNullableExtension extension

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