mirror method

  1. @override
SvgLineTo mirror(
  1. Axis axis, [
  2. double centerX = 0.0,
  3. double centerY = 0.0
])
override

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);
}