Converts a Curve constant to its string name.
Returns null for custom curves that are not part of Curves.
null
String? curveToString(Curve curve) => _namesByCurve[curve];