bezier3To method

void bezier3To(
  1. Offset target,
  2. Offset control1,
  3. Offset control2
)

Add bezier curve.

The method have 2 control points.

The target is the end point of the curve, and the control1 and control2 are the control points.

Implementation

void bezier3To(Offset target, Offset control1, Offset control2) {
  _parts.add(
    _BezierPathPart(
      target: target,
      control1: control1,
      control2: control2,
      kind: 3,
    ),
  );
}