addBezier method

void addBezier(
  1. Offset startPoint,
  2. Offset firstControlPoint,
  3. Offset secondControlPoint,
  4. Offset endPoint,
)

Adds an bezier curve

Implementation

void addBezier(Offset startPoint, Offset firstControlPoint,
    Offset secondControlPoint, Offset endPoint) {
  final List<double> points = <double>[];
  points.add(startPoint.dx);
  points.add(startPoint.dy);
  points.add(firstControlPoint.dx);
  points.add(firstControlPoint.dy);
  points.add(secondControlPoint.dx);
  points.add(secondControlPoint.dy);
  points.add(endPoint.dx);
  points.add(endPoint.dy);
  _addPoints(points, PathPointType.bezier3);
}