CoinDCX interview question

How to do equivalent of android startActivityForResult in flutter.

Interview Answer

Anonymous

21 Jun 2024

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.

1