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 completes true, then this widget will be dismissed, otherwise it will be moved back to its original location.

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

Implementation

final ConfirmDismissCallback? confirmDismiss;