Navigator.of(context).pushNamed('/placebids', arguments: {
'ProductId': productDocumentId,
'ProductName': productName,
});
I am passing this data to the new screen in flutter and i have to use it in the initState() method. Can anyone help how to do this.