flatMap

abstract fun <R> flatMap(transform: (T) -> Provider<R>): Provider<R>

Creates and returns a new Provider that maps to the value of the Provider 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).