LinearSteps constructor
const
LinearSteps({
- AlignmentGeometry begin = Alignment.centerLeft,
- AlignmentGeometry end = Alignment.centerRight,
- required List<
Color> colors, - List<
double> ? stops, - TileMode tileMode = TileMode.clamp,
- GradientTransform? transform,
Construct a new LinearSteps
type Gradient
.
This gradient resembles a LinearGradient but its colors
are not smoothly gradated between, but instead hard-transition,
like steps.
The right-most example is a LinearSteps
Implementation
const LinearSteps({
this.begin = Alignment.centerLeft,
this.end = Alignment.centerRight,
required List<Color> colors,
List<double>? stops,
this.tileMode = TileMode.clamp,
GradientTransform? transform,
}) : super(colors: colors, stops: stops, transform: transform);