The definition of a curve factory: given a context, returns a curve.
context
typedef CurveFactory = Curve Function(Path context);