Gradient.sweep constructor Null safety

const Gradient.sweep(
  1. {@Default(Alignment.center) Alignment center,
  2. @Default(0.0) double startAngle,
  3. @Default(pi * 2) double endAngle,
  4. required List<Color> colors,
  5. List<double>? stops,
  6. @Default(TileMode.clamp) TileMode tileMode,
  7. GradientTransform? transform}
)

Implementation

const factory Gradient.sweep({
  @Default(Alignment.center) Alignment center,
  @Default(0.0) double startAngle,
  @Default(pi * 2) double endAngle,
  required List<Color> colors,
  List<double>? stops,
  @Default(TileMode.clamp) TileMode tileMode,
  GradientTransform? transform,
}) = SweepGradient;