onWillPop property
If you want to perform a custom action on Android when exiting the app, you can write your logic here. Returns context of the selected screen.
Implementation
final Future<bool> Function(BuildContext?)? onWillPop;
If you want to perform a custom action on Android when exiting the app, you can write your logic here. Returns context of the selected screen.
final Future<bool> Function(BuildContext?)? onWillPop;