Why is the build () method on state and not stateful widget?

Why is the build method on State, and not StatefulWidget? Putting a Widget build(BuildContext context) method on State rather than putting a Widget build(BuildContext context, State state) method on StatefulWidget gives developers more flexibility when subclassing StatefulWidget .

Sizin İçin Seçtik  Sosyal aktiviteler nelerdir?

Leave a Reply

Your email address will not be published. Required fields are marked *