Receiver of FreeDrawScope.path — records absolute path commands.
The pen model matches every 2D canvas API: moveTo starts a new subpath, lineTo / quadTo / cubicTo extend it, close joins back to the subpath's starting point.
Closes the current subpath back to its starting point.
Cubic Bézier with control points (c1x, c1y) / (c2x, c2y) ending at (x, y).
(c1x, c1y)
(c2x, c2y)
(x, y)
Straight segment from the current point to (x, y).
Starts a new subpath at (x, y).
Quadratic Bézier with control point (cx, cy) ending at (x, y).
(cx, cy)
Convenience: an axis-aligned rectangle as a closed subpath.