onCancel property

VoidCallback? onCancel
final

The function to call to cancel this widget.

By default, this function will simply call Navigator.pop.

Implementation

final VoidCallback? onCancel;