discontinuedPackage flutter_painter_v2 has been discontinued.
paint property
Implementation
@protected
@override
Paint get paint => Paint()
..style = PaintingStyle.stroke
..strokeCap = StrokeCap.round
..strokeJoin = StrokeJoin.round
..color = color
..strokeWidth = strokeWidth;