of

abstract fun <T, P : ValueSourceParameters?> of(valueSourceType: Class<out ValueSource<T, P>>, configuration: Action<out Any>): Provider<T>

Creates a Provider whose value is obtained from the given ValueSource.

Return

the provider, never returns null

Parameters

valueSourceType

the type of the ValueSource

configuration

action to configure the parameters to the given ValueSource