current

@get:Composable
@get:ReadOnlyComposable
val <V : Any> ComponentDefaultKey<V>.current: V?

Deprecated

Provide a nested style: style = { provideNestedStyle(AllComponents) { ... } }. For a parent-layout declaration on each child, wrap the children in VirtualSwingNode(modifier).

Reads the nearest surviving value provided for this key in the current composition hierarchy, or null when the key is absent or was removed.

Provide a nested style: style = { provideNestedStyle(AllComponents) { ... } }. For a parent-layout declaration on each child, wrap the children in VirtualSwingNode(modifier).

Reports the inherited declaration rather than the value currently visible on any component: a later key or a node's own explicit modifier may win the same property.