Gradient.linear constructor Null safety

const Gradient.linear(
  1. {@Default(Alignment.centerLeft) Alignment begin,
  2. @Default(Alignment.centerRight) Alignment end,
  3. required List<Color> colors,
  4. List<double>? stops,
  5. @Default(TileMode.clamp) TileMode tileMode,
  6. GradientTransform? transform}
)

Implementation

const factory Gradient.linear({
  @Default(Alignment.centerLeft) Alignment begin,
  @Default(Alignment.centerRight) Alignment end,
  required List<Color> colors,
  List<double>? stops,
  @Default(TileMode.clamp) TileMode tileMode,
  GradientTransform? transform,
}) = LinearGradient;