LinearGradient constructor Null safety

const LinearGradient(
  1. {Alignment begin,
  2. Alignment end,
  3. required List<Color> colors,
  4. List<double>? stops,
  5. TileMode tileMode,
  6. GradientTransform? transform}
)

Implementation

const factory LinearGradient(
    {final Alignment begin,
    final Alignment end,
    required final List<Color> colors,
    final List<double>? stops,
    final TileMode tileMode,
    final GradientTransform? transform}) = _$LinearGradient;