#keys #internals #advanced
Keys! What are they good for?
The key parameter can be found on basically every widget constructor, but their use is less common. Keys preserve state when widgets move around in your widget tree. In practice, this means they can be useful to preserve the userβs scroll location or keep state when modifying a collection.
Keys! What are they good for?
The key parameter can be found on basically every widget constructor, but their use is less common. Keys preserve state when widgets move around in your widget tree. In practice, this means they can be useful to preserve the userβs scroll location or keep state when modifying a collection.
Medium
Keys! What are they good for?
The key parameter can be found on basically every widget constructor, but their use is less common. Keys preserve state when widgets moveβ¦