onPointerDown method

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

Implementation

@override
void onPointerDown(PointerDownEvent event) {
  if (previewMinDuration != Duration.zero) {
    _previewTimer = Timer(previewMinDuration, () {
      isRejectable = true;
      onTapRejectable.call(originOffset);
    });
  }

  if (acceptableDuration != Duration.zero) {
    _rejectsTimer = Timer(acceptableDuration, reject);
  }
}