buildWithChild method
A build method that receives an extra child
parameter.
This method may be called with a child
different from the parameter
passed to the constructor of SingleChildStatelessModifier.
It may also be called again with a different child
, without this widget
being recreated.
Implementation
@override
Widget buildWithChild(BuildContext context, Widget? child) {
return GestureDetector(
key: modifierKey,
behavior: behavior,
dragStartBehavior: dragStartBehavior,
excludeFromSemantics: excludeFromSemantics,
onDoubleTap: onDoubleTap,
onDoubleTapCancel: onDoubleTapCancel,
onDoubleTapDown: onDoubleTapDown,
onForcePressEnd: onForcePressEnd,
onForcePressPeak: onForcePressPeak,
onForcePressStart: onForcePressStart,
onForcePressUpdate: onForcePressUpdate,
onHorizontalDragCancel: onHorizontalDragCancel,
onHorizontalDragDown: onHorizontalDragDown,
onHorizontalDragEnd: onHorizontalDragEnd,
onHorizontalDragStart: onHorizontalDragStart,
onHorizontalDragUpdate: onHorizontalDragUpdate,
onLongPress: onLongPress,
onLongPressCancel: onLongPressCancel,
onLongPressDown: onLongPressDown,
onLongPressEnd: onLongPressEnd,
onLongPressMoveUpdate: onLongPressMoveUpdate,
onLongPressStart: onLongPressStart,
onLongPressUp: onLongPressUp,
onPanCancel: onPanCancel,
onPanDown: onPanDown,
onPanEnd: onPanEnd,
onPanStart: onPanStart,
onPanUpdate: onPanUpdate,
onScaleEnd: onScaleEnd,
onScaleStart: onScaleStart,
onScaleUpdate: onScaleUpdate,
onSecondaryLongPress: onSecondaryLongPress,
onSecondaryLongPressCancel: onSecondaryLongPressCancel,
onSecondaryLongPressDown: onSecondaryLongPressDown,
onSecondaryLongPressEnd: onSecondaryLongPressEnd,
onSecondaryLongPressMoveUpdate: onSecondaryLongPressMoveUpdate,
onSecondaryLongPressStart: onSecondaryLongPressStart,
onSecondaryLongPressUp: onSecondaryLongPressUp,
onSecondaryTap: onSecondaryTap,
onSecondaryTapCancel: onSecondaryTapCancel,
onSecondaryTapDown: onSecondaryTapDown,
onSecondaryTapUp: onSecondaryTapUp,
onTap: onTap,
onTapCancel: onTapCancel,
onTapDown: onTapDown,
onTapUp: onTapUp,
onTertiaryLongPress: onTertiaryLongPress,
onTertiaryLongPressCancel: onTertiaryLongPressCancel,
onTertiaryLongPressDown: onTertiaryLongPressDown,
onTertiaryLongPressEnd: onTertiaryLongPressEnd,
onTertiaryLongPressMoveUpdate: onTertiaryLongPressMoveUpdate,
onTertiaryLongPressStart: onTertiaryLongPressStart,
onTertiaryLongPressUp: onTertiaryLongPressUp,
onTertiaryTapCancel: onTertiaryTapCancel,
onTertiaryTapDown: onTertiaryTapDown,
onTertiaryTapUp: onTertiaryTapUp,
onVerticalDragCancel: onVerticalDragCancel,
onVerticalDragDown: onVerticalDragDown,
onVerticalDragEnd: onVerticalDragEnd,
onVerticalDragStart: onVerticalDragStart,
onVerticalDragUpdate: onVerticalDragUpdate,
child: child,
);
}