RayTool constructor

RayTool({
  1. required String id,
  2. Offset? startPoint,
  3. Offset? directionPoint,
  4. Color color = const Color(0xFF00BFFF),
  5. double strokeWidth = 2.0,
})

Implementation

RayTool({
  required String id,
  this.startPoint,
  this.directionPoint,
  Color color = const Color(0xFF00BFFF),
  double strokeWidth = 2.0,
}) : super(
        id: id,
        type: DrawingToolType.ray,
        createTime: DateTime.now(),
        color: color,
        strokeWidth: strokeWidth,
      );