onDragCancel method

  1. @mustCallSuper
void onDragCancel(
  1. DragCancelEvent event
)

The drag was cancelled.

This is a very rare event, so we provide a default implementation that converts it into an onDragEnd event.

Implementation

@mustCallSuper
void onDragCancel(DragCancelEvent event) => onDragEnd(event.toDragEnd());