ChartDrawing constructor

const ChartDrawing({
  1. required String id,
  2. required DrawingTool tool,
  3. required List<DrawingPoint> points,
  4. Color color = const Color(0xFF2962FF),
  5. double strokeWidth = 1.8,
  6. bool isLocked = false,
  7. bool isSelected = false,
  8. Map<String, dynamic> properties = const {},
})

Implementation

const ChartDrawing({
  required this.id,
  required this.tool,
  required this.points,
  this.color = const Color(0xFF2962FF),
  this.strokeWidth = 1.8,
  this.isLocked = false,
  this.isSelected = false,
  this.properties = const {},
});