What is the use of Keys in Flutter?

 Keys help Flutter identify widgets uniquely — useful when widgets move or get rebuilt.

Example:

TextField(key: ValueKey('username'));

Comments

Popular posts from this blog

1. What is Flutter?

What is FutureBuilder and StreamBuilder?