CompositionLocal

constructor(type: KClass<*>, defaultValue: () -> T)

Parameters

type

Runtime type of the held value, used to key it in BuildContext.

defaultValue

Value returned by current when nothing has provided an override.