Why is the build () method on State?

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  What is a MaterialApp?

Leave a Reply

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