translate method

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

Translate the curve

Implementation

QuadraticBezier translate({double x = 0, double y = 0}) {
  return QuadraticBezier(
    start: start.translate(x, y),
    control: control.translate(x, y),
    end: end.translate(x, y),
  );
}