const
Widget.gestureDetector(- {Key? key,
- Widget? child,
- Callback? onTap,
- Callback? onTapCancel,
- Callback? onSecondaryTap,
- Callback? onSecondaryTapCancel,
- Callback? onTertiaryTapCancel,
- Callback? onDoubleTap,
- Callback? onDoubleTapCancel,
- Callback? onLongPressCancel,
- Callback? onLongPress,
- Callback? onLongPressUp,
- Callback? onSecondaryLongPressCancel,
- Callback? onSecondaryLongPress,
- Callback? onSecondaryLongPressUp,
- Callback? onTertiaryLongPressCancel,
- Callback? onTertiaryLongPress,
- Callback? onTertiaryLongPressUp,
- Callback? onVerticalDragCancel,
- Callback? onHorizontalDragCancel,
- Callback? onPanCancel,
- HitTestBehavior? behavior,
- @Default(false) bool excludeFromSemantics,
- @Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
- Set<PointerDeviceKind>? supportedDevices}
)
Implementation
const factory Widget.gestureDetector({
Key? key,
Widget? child,
Callback? onTap,
Callback? onTapCancel,
Callback? onSecondaryTap,
Callback? onSecondaryTapCancel,
Callback? onTertiaryTapCancel,
Callback? onDoubleTap,
Callback? onDoubleTapCancel,
Callback? onLongPressCancel,
Callback? onLongPress,
Callback? onLongPressUp,
Callback? onSecondaryLongPressCancel,
Callback? onSecondaryLongPress,
Callback? onSecondaryLongPressUp,
Callback? onTertiaryLongPressCancel,
Callback? onTertiaryLongPress,
Callback? onTertiaryLongPressUp,
Callback? onVerticalDragCancel,
Callback? onHorizontalDragCancel,
Callback? onPanCancel,
HitTestBehavior? behavior,
@Default(false) bool excludeFromSemantics,
@Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
Set<PointerDeviceKind>? supportedDevices,
}) = GestureDetector;