invalidateRulers
public fun LayoutModifierNode.invalidateRulers()
Recalculates the Ruler values this node provides, without remeasuring or re-placing the node.
Call this when a value read while providing rulers changes and that value is not snapshot state (for example, a plain var on the node). Changes to State read while providing rulers are observed and recalculate rulers automatically.
Choosing an invalidation:
- invalidateMeasurement: reruns the measure block. Rulers are recalculated with the new measure
- invalidatePlacement: reruns the placement block. Does not recalculate rulers; the ruler
- invalidateRulers: recalculates only the rulers. This node's measure and placement blocks do
result. Use it when size or child measurement also depends on the changed value.
values from the last measure result are reused.
not rerun. Layouts that read the affected rulers are re-placed.
Has no effect if the node is not attached.