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