I was wondering how setState() really works in Flutter.
I have a page that contains a ListView and a Play button. When I press the button, I call setState() to change the Icon from the button. This triggers the ListView to rebuild the whole list which it's items.
Should I wrap my button in a new StatefulWidget, so rebuilding the button won't rebuild the whole page? Or is Flutter smart enough to figure out what has really changed and only rebuild these widgets? If the letter is the case, how does it work? I'm sure the build method of my List items is being called...