onDismissPrevented property
A callback that gets invoked when a user tried to dismiss the dialog
while isDimissable
is set to true
.
The backButton
flag indicates whether the user tried to dismiss the sheet
using the backButton, while the backDrop
flag indicates whether the user tried
to dismiss the sheet by tapping the backdrop.
Implementation
final OnDismissPreventedCallback? onDismissPrevented;