Stateful and stateless widgets A widget is either stateful or stateless. If a widget can change—when a user interacts with it, for example—it’s stateful. A stateless widget never changes.
Stateful and stateless widgets A widget is either stateful or stateless. If a widget can change—when a user interacts with it, for example—it’s stateful. A stateless widget never changes.