mirror method
Mirrors this over vertical or horizontal line that goes though centerX
,centerY
.
Implementation
@override
SvgLineTo mirror(Axis axis, [double centerX = 0.0, double centerY = 0.0]) {
final (x, y) = mirrorPoint(this.x, this.y, axis, centerX, centerY);
return SvgLineTo(x, y);
}