paint method

  1. @override
void paint (
  1. dynamic canvas,
  2. 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);
  }
}