onDragCancel property
Called when a drag operation is cancelled.
This is called instead of onDragEnd when:
- The gesture recognizer cancels the gesture
- The widget is disposed mid-drag
- The pointer up handler detects the original pointer released
If null, onDragEnd is called with empty DragEndDetails as a fallback.
Implementation
final VoidCallback? onDragCancel;