onCancel property

VoidCallback? onCancel
final

Called when the cancel button is tapped.

If showsCancelButton is true and this callback is provided, the cancel button will be shown.

Implementation

final VoidCallback? onCancel;