ParentDataModifierNode

Active modifier behavior that supplies typed data to its logical parent layout.

An implementation must be attached to an active ModifierNode and expose one stable, referential parentDataKey for the retained modifier description. parentData returns an immutable, type-correct snapshot for that key. The runtime invokes it on the owner thread during measure or layout and propagates its exact failure instance. A provider update that changes its key or value must invalidate measurement; an equal update may leave measurement clean.

Type Parameters

D

the parent-data value type supplied by this modifier.

Properties

Link copied to clipboard

Stable referential token owned by the retained parent-data description.

Functions

Link copied to clipboard
abstract fun parentData(): D

Returns the current immutable, type-correct parent-data snapshot.