How do you pass a function to a stateful widget Flutter?

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 is optional parameter in flutter?

Leave a Reply

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