bezierCurveTo method Null safety

GraphicsCommandBezierCurveTo bezierCurveTo(
  1. num controlX1,
  2. num controlY1,
  3. num controlX2,
  4. num controlY2,
  5. num endX,
  6. num endY
)

From the current point in the path, draw a bezier curve to endX and endY

Implementation

GraphicsCommandBezierCurveTo bezierCurveTo(num controlX1, num controlY1,
    num controlX2, num controlY2, num endX, num endY) {
  final command = GraphicsCommandBezierCurveTo(
      controlX1, controlY1, controlX2, controlY2, endX, endY);
  addCommand(command);
  return command;
}