drawPath method
void
drawPath(
- Path path,
- Paint paint, {
- HitTestBehavior? hitTestBehavior,
- GestureTapCallback? onTap,
- GestureTapUpCallback? onTapUp,
Implementation
void drawPath(
Path path,
Paint paint, {
HitTestBehavior? hitTestBehavior,
// GestureTapDownCallback? onTapDown,
// PaintingStyle? paintStyleForTouch,
GestureTapCallback? onTap,
GestureTapUpCallback? onTapUp,
// GestureLongPressStartCallback? onLongPressStart,
// GestureLongPressEndCallback? onLongPressEnd,
// GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
// GestureForcePressStartCallback? onForcePressStart,
// GestureForcePressEndCallback? onForcePressEnd,
// GestureForcePressPeakCallback? onForcePressPeak,
// GestureForcePressUpdateCallback? onForcePressUpdate,
// GestureDragStartCallback? onPanStart,
// GestureDragUpdateCallback? onPanUpdate,
// GestureDragDownCallback? onPanDown,
// GestureTapDownCallback? onSecondaryTapDown,
// GestureTapUpCallback? onSecondaryTapUp,
}) {
_canvas.drawPath(path, paint);
_shapeHandler.addShape(PathShape(path,
paint: paint,
hitTestBehavior: hitTestBehavior,
gestureMap: TouchCanvasUtil.getGestureCallbackMap(
// onTapDown: onTapDown,
onTapUp: onTapUp,
// onLongPressStart: onLongPressStart,
// onLongPressEnd: onLongPressEnd,
// onLongPressMoveUpdate: onLongPressMoveUpdate,
// onForcePressStart: onForcePressStart,
// onForcePressEnd: onForcePressEnd,
// onForcePressPeak: onForcePressPeak,
// onForcePressUpdate: onForcePressUpdate,
// onPanStart: onPanStart,
// onPanUpdate: onPanUpdate,
// onPanDown: onPanDown,
// onSecondaryTapDown: onSecondaryTapDown,
// onSecondaryTapUp: onSecondaryTapUp,
)));
}