translate method

  1. @override
Ellipse translate({
  1. double x = 0,
  2. double y = 0,
})
override

translate the shape with x in horizontally and y vertically

Implementation

@override
Ellipse translate({double x = 0, double y = 0}) {
  return Ellipse(
    center: Point(center.x + x, center.y + y),
    radiusX: radiusX,
    radiusY: radiusY,
  );
}