DrawingTool constructor

DrawingTool({
  1. required String id,
  2. required DrawingToolType type,
  3. required DateTime createTime,
  4. Color color = const Color(0xFFFFD700),
  5. double strokeWidth = 2.0,
  6. bool isVisible = true,
  7. DrawingToolState state = DrawingToolState.none,
})

Implementation

DrawingTool({
  required this.id,
  required this.type,
  required this.createTime,
  this.color = const Color(0xFFFFD700), // 默认金色
  this.strokeWidth = 2.0,
  this.isVisible = true,
  this.state = DrawingToolState.none,
});