CubicBezier constructor

const CubicBezier({
  1. required double x1,
  2. required double y1,
  3. required double x2,
  4. required double y2,
  5. required double x3,
  6. required double y3,
})

Creates a CubicBezier object with given parameters.

A cubic Bezier curve is defined by three points: it starts at the current point, the curve is influenced by the first (x1, y1) and the second (x2, y2) control points, and it ends at (x3, y3).

Implementation

const CubicBezier({
  required this.x1,
  required this.y1,
  required this.x2,
  required this.y2,
  required this.x3,
  required this.y3,
});