LinearSteps constructor

const LinearSteps({
  1. AlignmentGeometry begin = Alignment.centerLeft,
  2. AlignmentGeometry end = Alignment.centerRight,
  3. required List<Color> colors,
  4. List<double>? stops,
  5. TileMode tileMode = TileMode.clamp,
  6. 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

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);