translate method

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

Translate the polyline

Implementation

Polyline translate({double x = 0, double y = 0}) {
  return Polyline(points.map((p) => p.translate(x, y)).toList());
}