Does setState rebuild all widgets?

In the onPressed event of the “Add Item” button, we add a new item then call setState in order to rebuild WidgetA and all it’s inner widgets , including WidgetB: onPressed: () => setState(() { items.

Sizin İçin Seçtik  Why is the build () method on state and not Statefulwidgets?

Leave a Reply

Your email address will not be published. Required fields are marked *