how to pass a boolean value while popping a screen and catch the value in the previous screen in flutter code example
Example: send data back on back press flutter
leading: IconButton(icon:Icon(Icons.chevron_left),onPressed:() => Navigator.pop(context, false),),)