dispose method Null safety

  1. @mustCallSuper
void dispose()
mustCallSuper">@mustCallSuper

Called by the delegate when it is no longer sending events to this object.

Implementation

@mustCallSuper
void dispose() {
  _lastDetails = null;
  onDragCanceled?.call();
}