onCancel property

VoidCallback? onCancel
final

Called when the user cancels. When null, only the back gesture closes the sheet.

Implementation

final VoidCallback? onCancel;