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
@override
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.
@override
final Future<bool> Function(BuildContext?)? onWillPop;