PdfBezierCurve constructor

PdfBezierCurve(
  1. Offset startPoint,
  2. Offset firstControlPoint,
  3. Offset secondControlPoint,
  4. Offset endPoint, {
  5. PdfPen? pen,
})

Initializes a new instance of the PdfBezierCurve class with the specified PdfPen and Offset structure.

Implementation

PdfBezierCurve(Offset startPoint, Offset firstControlPoint,
    Offset secondControlPoint, Offset endPoint,
    {PdfPen? pen}) {
  _helper = PdfBezierCurveHelper(this);
  if (pen != null) {
    super.pen = pen;
  }
  this.startPoint = startPoint;
  this.firstControlPoint = firstControlPoint;
  this.secondControlPoint = secondControlPoint;
  this.endPoint = endPoint;
}