translate method

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

Translate the curve

Implementation

CubicBezier translate({double x = 0, double y = 0}) {
  return CubicBezier(
    start: start.translate(x, y),
    control1: control1.translate(x, y),
    control2: control2.translate(x, y),
    end: end.translate(x, y),
  );
}