BasePainter constructor

BasePainter({
  1. Color color = Colors.black,
  2. double rotateAngle = 0.0,
  3. double strokeWidth = 1,
  4. Listenable? repaint,
})

Implementation

BasePainter({
  this.color = Colors.black,
  this.rotateAngle = 0.0,
  this.strokeWidth = 1,
  Listenable? repaint,
}) : super(repaint: repaint) {
  customPaint = Paint()
    ..color = color
    ..strokeWidth = strokeWidth
    ..style = PaintingStyle.stroke;
}