Converts the gradient type and stops to a CSS string (e.g., "linear-gradient(to right, red, blue)").
String cssText(List<String> stops) => '$cssName(${stops.join(", ")})';