SweepSteps constructor

const SweepSteps({
  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,
})

Construct a new SweepSteps type Gradient.

This gradient resembles a SweepGradient but its colors are not smoothly gradated between, but instead hard-transition, like steps.

The left-most example is a SweepSteps

the left-most example is a SweepSteps

Implementation

const SweepSteps({
  this.center = Alignment.center,
  this.startAngle = 0.0,
  this.endAngle = math.pi * 2,
  required List<Color> colors,
  List<double>? stops,
  this.tileMode = TileMode.clamp,
  GradientTransform? transform,
}) : super(colors: colors, stops: stops, transform: transform);