A unique identifier for this component. Used by the framework for diffing, animations, and scroll position tracking.
Support
Usage
Identifying items in a list
Triggering view replacement with identity changes
Changing theid value tells the framework this is a new component, triggering removal of the old one and insertion of the new one (including any transition animations).
Scroll position tracking
Use.id() together with .scrollPosition() to track or scroll to specific children.
See Also
- tag — identifies components in selection contexts like Picker