What is the use of Key?

EugeniaGallo1 3 views 2 slides Sep 29, 2022
Slide 1
Slide 1 of 2
Slide 1
1
Slide 2
2

About This Presentation

A Key is an identifier for Widgets, Elements and SemanticsNodes. A new widget will only be used to update an existing element if its key is the same as the key of the current widget associated with the element. It keeps a reference to state and access the state at different times or maintains it whi...


Slide Content

What is the use of ?Key
A is an identifier for Widgets, Elements
and SemanticsNodes. A new widget will
only be used to update an existing element
if its key is the same as the key of the
current widget associated with the
element.
It keeps a reference to state and access the
state at different times or maintains it
while modifying the widget tree.
Key

[email protected]
Leave a comment
Save for later