TrendLineTool constructor

TrendLineTool({
  1. required String id,
  2. Offset? startPoint,
  3. Offset? endPoint,
  4. bool extendLeft = false,
  5. bool extendRight = false,
  6. Color color = const Color(0xFFFFD700),
  7. double strokeWidth = 2.0,
})

Implementation

TrendLineTool({
  required String id,
  this.startPoint,
  this.endPoint,
  this.extendLeft = false,
  this.extendRight = false,
  Color color = const Color(0xFFFFD700),
  double strokeWidth = 2.0,
}) : super(
        id: id,
        type: DrawingToolType.trendLine,
        createTime: DateTime.now(),
        color: color,
        strokeWidth: strokeWidth,
      );