LinearGradient constructor

const LinearGradient({
  1. AlignmentGeometry begin = Alignment.centerLeft,
  2. AlignmentGeometry end = Alignment.centerRight,
  3. required List<PdfColor> colors,
  4. List<double>? stops,
  5. TileMode tileMode = TileMode.clamp,
})

Creates a linear gradient.

Implementation

const LinearGradient({
  this.begin = Alignment.centerLeft,
  this.end = Alignment.centerRight,
  required List<PdfColor> colors,
  List<double>? stops,
  this.tileMode = TileMode.clamp,
}) : super(colors: colors, stops: stops);