strongOrElseBy

fun <T> Provider<T?>.strongOrElseBy(provider: Provider<T>): Provider<T>

Creates and returns a new Provider that returns a fallback value obtained through provider if the value of this is null.


@JvmName(name = "strongOrElseByNullable")
fun <T> Provider<T?>.strongOrElseBy(provider: Provider<T>?): Provider<T?>

If provider is null, returns this. If provider is not null, creates and returns a new Provider that returns a fallback value obtained through provider if the value of this is null.