onConsecutive method
Implementation
void onConsecutive(int pointer) {
isRejectable = false;
cycleTimer?.cancel();
cycleTimer = Timer(cycleDuration, () {
isRejectable = true;
onLongTapRejectable.call(originOffset);
// Perform delayed recursive as async about this consecutive task.
acceptTimer = Timer(acceptableDuration, () => checkConsecutive(pointer));
});
}