SweepGradient constructor

const SweepGradient(
  1. {AlignmentGeometry center = Alignment.center,
  2. double startAngle = 0.0,
  3. double endAngle = math.pi * 2,
  4. required List<Color> colors,
  5. List<double>? stops,
  6. TileMode tileMode = TileMode.clamp,
  7. GradientTransform? transform}
)

Creates a sweep gradient.

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

Implementation

const SweepGradient({
  this.center = Alignment.center,
  this.startAngle = 0.0,
  this.endAngle = math.pi * 2,
  required super.colors,
  super.stops,
  this.tileMode = TileMode.clamp,
  super.transform,
});