Flutter中的Key
Key
A [Key] is an identifier for [Widget]s, [Element]s and [SemanticsNode]s.
/// 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.
如果一个新的widget和当前widget相
原创
2021-07-23 15:09:04 ·
327 阅读 ·
0 评论