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  How would you access StatefulWidget properties from its state?

Leave a Reply

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