wrapWithPointerPressTracking method
wrapWithPointerPressTracking.
Implementation
@protected
Widget wrapWithPointerPressTracking({
required bool enabled,
required Widget child,
}) {
if (!enabled) {
return child;
}
return TapRegion(
onTapOutside: _onTapOutside,
child: Listener(
behavior: HitTestBehavior.translucent,
onPointerDown: _onPointerDown,
onPointerUp: _onPointerUp,
onPointerCancel: _onPointerCancel,
child: child,
),
);
}