flatten

Creates and returns a new Provider that maps to the provider that is the value of this.

This function is equivalent to provider.flatMap { it }.

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


Creates and returns a new Provider that maps to the provider that is the value of this.

This function is equivalent to provider.flatMapMutable { it }.

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