Difference between Stateful and Stateless Widgets.

bookmark

 Stateful widgets hold the state of the device and can be rebuilt when the state changes whereas stateless widgets are built only when it is created or when the parent changes.

Difference between Stateful and Stateless Widgets In Flutter | Flutter Interview Questions