flatMapMutable

abstract fun <R> flatMapMutable(transform: (T) -> MutableProvider<R>): MutableProvider<R>

Creates and returns a new MutableProvider that maps to the value of the MutableProvider returned by transform.

This disables lazy evaluation of this in order to ensure that all updates of the flat-mapped provider are received.

transform should be a pure function.

The returned provider will only be stored in a WeakReference in the parent providers (this and the result of transform).