How do you pass parameters to a stateful widget?

To pass data to the stateful widget just pass parameters to the state using the constructor . You can easily access this parameter using the widget. yourPeram in your second stateful widget.

Sizin İçin Seçtik  What are the benefits of donkey kicks?

Leave a Reply

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

How do you pass parameters to a stateful widget?

To pass data to the stateful widget just pass parameters to the state using the constructor . You can easily access this parameter using the widget. yourPeram in your second stateful widget.

Sizin İçin Seçtik  Why is the build () method on state and not stateful widget?

Leave a Reply

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