onLeaveConfirmation property

Future<bool?> Function(BuildContext context)? onLeaveConfirmation
final

You can do what you want before clicked. Return true, exit; Return false, will not exit.

Implementation

final Future<bool?> Function(BuildContext context)? onLeaveConfirmation;