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