mapNonNull
Creates and returns a new Provider that maps non-null values of this using the transform function. Null values will be passed through without transformation.
transform should be a pure function.
The returned provider will only be stored in a WeakReference in the parent provider (this).
inline fun <T : Any, R : Any> MutableProvider<T?>.mapNonNull(crossinline transform: (T) -> R?, crossinline untransform: (R) -> T?): MutableProvider<R?>
Creates and returns a new MutableProvider that maps non-null values of this bi-directionally using the provided transform and untransform functions. Null values will be passed through without transformation.
transform and untransform should be pure functions.
The returned provider will only be stored in a WeakReference in the parent provider (this).