Widget.gestureDetector constructor Null safety

const Widget.gestureDetector(
  1. {Key? key,
  2. Widget? child,
  3. Callback? onTap,
  4. Callback? onTapCancel,
  5. Callback? onSecondaryTap,
  6. Callback? onSecondaryTapCancel,
  7. Callback? onTertiaryTapCancel,
  8. Callback? onDoubleTap,
  9. Callback? onDoubleTapCancel,
  10. Callback? onLongPressCancel,
  11. Callback? onLongPress,
  12. Callback? onLongPressUp,
  13. Callback? onSecondaryLongPressCancel,
  14. Callback? onSecondaryLongPress,
  15. Callback? onSecondaryLongPressUp,
  16. Callback? onTertiaryLongPressCancel,
  17. Callback? onTertiaryLongPress,
  18. Callback? onTertiaryLongPressUp,
  19. Callback? onVerticalDragCancel,
  20. Callback? onHorizontalDragCancel,
  21. Callback? onPanCancel,
  22. HitTestBehavior? behavior,
  23. @Default(false) bool excludeFromSemantics,
  24. @Default(DragStartBehavior.start) DragStartBehavior dragStartBehavior,
  25. 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;