Reputation: 763
i want to set the state of child class ( Stateful ) from parent class ( statefull ) in flutter
Upvotes: 0
Views: 81
Reputation:
In flutter, anytime you call setState
in a widget, it automatically rebuilds all the children. Therefore, all you need to do is call setState
in the parent widget
Upvotes: 1