onDragCancel method

  1. @override
bool onDragCancel(
  1. DragCancelEvent event
)
override

The drag was cancelled.

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

Implementation

@override
bool onDragCancel(DragCancelEvent event) {
  super.onDragCancel(event);
  onDragStop();
  return false;
}