onLeaveConfirmation property
You can do what you want before clicked. Return true, exit; Return false, will not exit.
Implementation
final Future<bool?> Function(BuildContext context)? onLeaveConfirmation;
You can do what you want before clicked. Return true, exit; Return false, will not exit.
final Future<bool?> Function(BuildContext context)? onLeaveConfirmation;