Flutter has two types of widgets Stateless Widget, and Stateful Widget.
Stateless Widget:
Stateless Widgets are rendered only once when the widget is loaded. We can't rebuild a Stateless widget based on any user events or changes.
Stateful Widgets...