Answers for "why are stateful widget and state separate classes"

0

why are stateful widget and state separate classes

There are multiple reasons : Widgets are immutable. Since the Stateful widget extends Widget it, therefore, must be immutable too. Splitting the declaration into two classes allows both the Stateful widget API to be immutable and State to be mutable.
Posted by: Guest on April-03-2022

Code answers related to "why are stateful widget and state separate classes"

Browse Popular Code Answers by Language