render method
Implementation
@override
void render(Canvas canvas) {
if (path.isNotEmpty) {
final p = Path()..moveTo(path.first.x, path.first.y);
for (var i = 1; i < path.length; i++) {
p.lineTo(path[i].x, path[i].y);
}
canvas.drawPath(p, _paintPath);
}
super.render(canvas);
}