Gradient.radial constructor

Gradient.radial(
  1. String shape,
  2. List<Object> stops
)

Creates a radial-gradient(...) from shape and color stops.

Implementation

factory Gradient.radial(String shape, List<Object> stops) {
  return Gradient(
    'radial-gradient($shape, ${stops.map(_gradientStopValue).join(', ')})',
  );
}