map

abstract fun <R> map(transform: (T) -> R, untransform: (R) -> T): MutableProvider<R>

Creates and returns a new MutableProvider that maps the value of this bi-directionally using the provided transform and untransform functions.

transform and untransform should be pure functions.

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