DrawingStroke constructor

const DrawingStroke({
  1. required List<StrokePoint> points,
  2. required Color color,
  3. required double size,
  4. StrokeTool tool = StrokeTool.pen,
})

Creates a stroke.

Implementation

const DrawingStroke({
  required this.points,
  required this.color,
  required this.size,
  this.tool = StrokeTool.pen,
});