SweepSteps constructor Null safety

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

A Steps gradient differs from a standard Gradient in its progression from one color to the next. Instead of smoothly transitioning between colors, Steps have hard edges created by duplicating colors and stops.

A larger softness makes this SweepSteps more like a standard SweepGradient. Default is 0.0. High-resolution displays are well-suited for displaying the non-anti-aliased Steps formed when softness == 0.0.

See Steps for more information.

Implementation

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