componentDefaultKeyOf

Deprecated

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

Creates a new ComponentDefaultKey with identity equality.

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

apply must be deterministic for its value: any state that changes the modifier it builds belongs in V, because the provider may reuse the result for a structurally equal provision.

Return

an independent ComponentDefaultKey instance.

Parameters

name

non-blank descriptive name of this key.

apply

transforms an empty SwingModifier receiver with the provided value V.