ComponentDefaultKey

@Stable
class ComponentDefaultKey<V : Any>

An identity key naming an independent part of a scoped cascade of inheritable modifier declarations.

Keys compare by identity (===). name is used for diagnostics, validation failures and toString; two keys with the same name remain independent. The type parameter V is the type of value this key expects, which must be non-nullable (null is reserved by provides for removing this key from a nested subtree).

Properties

Link copied to clipboard
@get:Composable
@get:ReadOnlyComposable
val <V : Any> ComponentDefaultKey<V>.current: V?

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

Link copied to clipboard

the non-blank descriptive name of this key.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String