SweepSteps constructor
const
SweepSteps({
- AlignmentGeometry center = Alignment.center,
- double startAngle = 0.0,
- double endAngle = math.pi * 2,
- required List<
Color> colors, - List<
double> ? stops, - TileMode tileMode = TileMode.clamp,
- 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
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);