line function
Implementation
line(Canvas canvas, Offset start, Offset end) {
var paint = Paint()
..color = Color(0xff596275).withOpacity(0.5)
..strokeWidth = 3
..style = PaintingStyle.stroke
..strokeCap = StrokeCap.round;
canvas.drawLine(start, end, paint);
}