add the given path to the PathElement
@override void addToPath(Path path) { if (relative) { path.relativeLineTo(lineParams.dx, lineParams.dy); } else { path.lineTo(lineParams.dx, lineParams.dy); } }