DrawingTool constructor
DrawingTool({
- required String id,
- required DrawingToolType type,
- required DateTime createTime,
- Color color = const Color(0xFFFFD700),
- double strokeWidth = 2.0,
- bool isVisible = true,
- 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,
});