map

inline fun <T, R> Provider<T>.map(crossinline transform: (T) -> R): Provider<R>(source)

Lazily maps this Provider's value to another Provider of type R.


inline fun <T, R> SuspendProvider<T>.map(crossinline transform: suspend (T) -> R): SuspendProvider<R>(source)

Returns a provider that applies transform to this provider's value.