GestureDetector constructor Null safety

const 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. bool excludeFromSemantics,
  24. DragStartBehavior dragStartBehavior,
  25. Set<PointerDeviceKind>? supportedDevices}
)

Implementation

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