initState initializes the "first" state of a widget at the beginning, when it is built for the first time. And in the other hand, setState updates or overrides an already established state of a widget.
initState initializes the "first" state of a widget at the beginning, when it is built for the first time. And in the other hand, setState updates or overrides an already established state of a widget.