stopTrackingIfPointerNoLongerDown method Null safety

  1. @protected
void stopTrackingIfPointerNoLongerDown(
  1. PointerEvent event
)
protected">@protected

Stops tracking the pointer associated with the given event if the event is a PointerUpEvent or a PointerCancelEvent event.

Implementation

@protected
void stopTrackingIfPointerNoLongerDown(PointerEvent event) {
  if (event is PointerUpEvent || event is PointerCancelEvent || event is PointerPanZoomEndEvent) {
    stopTrackingPointer(event.pointer);
  }
}