externalContext
protected fun <TContext> externalContext(externalContextName: String? = null): PropertyDelegateProvider<ComputedValue<T>, ReadOnlyProperty<ComputedValueContext, TContext>>(source)
Function used to declare a dependency to an external context and delegate access to its value within a ComputedValueContext.
If the external context could not be found during the execution of the computed value, then accessing this external context will throw ExternalContextNotFoundException.
It should be used as follows:
private val ComputedValueContext.externalContextName: Type by externalContext()Content copied to clipboard