How to do equivalent of android startActivityForResult in flutter.
Anónimo
await Navigator.pushNamed(context, secondWidgetRoute); Here in the above code, you can see that we have pushed the new widget with an await prefix. Using this our function will wait till it gets some result from the next widget.