onPointerDown method

  1. @override
void onPointerDown(
  1. PointerDownEvent event
)
override

Implementation

@override
void onPointerDown(PointerDownEvent event) {
  delayTimer = Timer(delayDuration, () {
    isRejectable = true;
    onLongTapRejectable.call(originOffset);

    if (focusTiming == TouchRippleFocusTiming.rejectable) {
      focusStart();
    }

    assert(acceptTimer == null);
    acceptTimer = Timer(acceptableDuration, accept);
  });
}