UnwrapFuture<T> extension

on

Methods

unwrapWith(T alternative) Future<T>

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

Unwraps a Future that may contain a null value by providing an alternative value. If the original Future resolves to a non-null value, that value is returned. If it resolves to null, the provided alternative value is returned instead.