Gradient.radial constructor Null safety

const Gradient.radial(
  1. {@Default(Alignment.center) Alignment center,
  2. @Default(0.5) double radius,
  3. required List<Color> colors,
  4. List<double>? stops,
  5. @Default(TileMode.clamp) TileMode tileMode,
  6. Alignment? focal,
  7. @Default(0.0) double focalRadius,
  8. GradientTransform? transform}
)

Implementation

const factory Gradient.radial({
  @Default(Alignment.center) Alignment center,
  @Default(0.5) double radius,
  required List<Color> colors,
  List<double>? stops,
  @Default(TileMode.clamp) TileMode tileMode,
  Alignment? focal,
  @Default(0.0) double focalRadius,
  GradientTransform? transform,
}) = RadialGradient;