Expand description
Persistent modifier nodes: state attached to a modifier that survives recomposition.
A ModifierNodeElement describes a node; Modifier::node attaches it.
During reconciliation the tree keeps the previous node when the element type
and key match, and calls ModifierNodeElement::update on it instead of
building a new one. Node state therefore survives the modifier being rebuilt
every frame, which is what gestures, timers, and scroll physics need.
Structs§
- Modifier
Node Handle - One element and its node, stored on a
Modifier.
Traits§
- Modifier
Node - A live modifier node.
- Modifier
Node Element - A description of one modifier node.