CSSLinearGradient constructor
CSSLinearGradient({})
Creates a linear gradient.
The colors argument must not be null. If stops is non-null, it must
have the same length as colors.
Implementation
CSSLinearGradient({
Alignment super.begin,
Alignment super.end,
double? angle,
double? repeatPeriod,
required super.colors,
// A list of values from 0.0 to 1.0 that denote fractions along the gradient.
super.stops,
super.tileMode,
super.transform,
}) : _angle = angle,
_repeatPeriod = repeatPeriod;