linearGradient method
void
linearGradient({
- AlignmentGeometry begin = Alignment.centerLeft,
- AlignmentGeometry end = Alignment.centerRight,
- required List<
Color> colors, - TileMode tileMode = TileMode.clamp,
- List<
double> ? stops,
inherited
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
void linearGradient(
{AlignmentGeometry begin = Alignment.centerLeft,
AlignmentGeometry end = Alignment.centerRight,
required List<Color> colors,
TileMode tileMode = TileMode.clamp,
List<double>? stops}) {
_styleModel.gradient = LinearGradient(
begin: begin,
end: end,
colors: colors,
tileMode: tileMode,
stops: stops);
}