componentDefaultKeyOf
fun <V : Any> componentDefaultKeyOf(name: String, apply: SwingModifier.(V) -> SwingModifier): ComponentDefaultKey<V>
Creates a new ComponentDefaultKey with identity equality.
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.