onPointerUp method

  1. @override
void onPointerUp(
  1. PointerUpEvent event
)
override

Implementation

@override
void onPointerUp(PointerUpEvent event) {
  if (count == 0) {
    reject();
  } else {
    // Need to call the reject callback function separately only when current is rejectable.
    if (isRejectable) onLongTapReject.call();

    onLongTapEnd?.call();
    cycleTimer?.cancel();
    acceptTimer?.cancel();
    didStopTrackingLastPointer(event.pointer);
    focusEnd();
  }
}