RadialGradient constructor

const RadialGradient({
  1. Alignment center = Alignment.center,
  2. double radius = 0.5,
  3. required List<PdfColor> colors,
  4. List<double>? stops,
  5. TileMode tileMode = TileMode.clamp,
  6. Alignment? focal,
  7. double focalRadius = 0.0,
})

Creates a radial gradient.

The colors argument must not be null. If stops is non-null, it must have the same length as colors.

Implementation

const RadialGradient({
  this.center = Alignment.center,
  this.radius = 0.5,
  required List<PdfColor> colors,
  List<double>? stops,
  this.tileMode = TileMode.clamp,
  this.focal,
  this.focalRadius = 0.0,
}) : super(colors: colors, stops: stops);