cssText method

String cssText(
  1. List<String> stops
)

Converts the gradient type and stops to a CSS string (e.g., "linear-gradient(to right, red, blue)").

Implementation

String cssText(List<String> stops) => '$cssName(${stops.join(", ")})';