paint method
- dynamic canvas,
- dynamic size
Implementation
@override
void paint(Canvas canvas, Size size) {
Paint line = new Paint()
..color = lineColor
..strokeCap = StrokeCap.square
..style = PaintingStyle.fill
..strokeWidth = 6;
if (!last) {
canvas.drawLine(Offset(38.5, size.height), Offset(38.5, 0), line);
}
}