SweepGradient constructor

const SweepGradient(
  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}
)

Creates a sweep gradient.

The colors argument must not be null. If stops is non-null, it must have the same length as colors.

Implementation

const SweepGradient({
  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,
}) : assert(center != null),
     assert(startAngle != null),
     assert(endAngle != null),
     assert(tileMode != null),
     super(colors: colors, stops: stops, transform: transform);