Gradient constructor

const Gradient({
  1. required List<PdfColor> colors,
  2. List<double>? stops,
})

Initialize the gradient's colors and stops.

Implementation

const Gradient({
  required this.colors,
  this.stops,
});