1. override
void handlePrimaryPointer(PointerEvent event)

Override to provide behavior for the primary pointer when the gesture is still possible.

Source

@override
void handlePrimaryPointer(PointerEvent event) {
  if (event is PointerUpEvent)
    resolve(GestureDisposition.rejected);
}