detectDoubleTap method
Detects whether a PointerDownEvent is part of a double-tap gesture.
Returns true
if two taps occur within the debounce duration.
Implementation
@protected
bool detectDoubleTap(PointerDownEvent details) {
_lastTapDownOffset = details.position;
_doubleTapCountHelper++;
_doubleTapDebounce(() {
_doubleTapCountHelper = 0;
});
return _doubleTapCountHelper == 2;
}