translate method

Ring translate({
  1. double x = 0,
  2. double y = 0,
})

Translate the ring

Implementation

Ring translate({double x = 0, double y = 0}) {
  return Ring(
    center: Point(center.x + x, center.y + y),
    innerRadius: innerRadius,
    outerRadius: outerRadius,
  );
}