confirmDismiss property

ConfirmDismissCallback? confirmDismiss
final

Gives the app an opportunity to confirm or veto a pending dismissal.

The widget cannot be dragged again until the returned future resolves.

If the returned Future

If the returned Future<bool?> completes to false or null the onResize and onDismissed callbacks will not run.

Implementation

final ConfirmDismissCallback? confirmDismiss;