linearGradient method
VxBox
linearGradient(
- List<
Color> colors, { - AlignmentGeometry begin = Alignment.centerLeft,
- AlignmentGeometry end = Alignment.centerRight,
- List<
double> ? stops, - TileMode tileMode = TileMode.clamp,
- GradientTransform? transform,
Gradienting Sets the linear gradient to the decorated box.
Implementation
VxBox linearGradient(List<Color> colors,
{AlignmentGeometry begin = Alignment.centerLeft,
AlignmentGeometry end = Alignment.centerRight,
List<double>? stops,
TileMode tileMode = TileMode.clamp,
GradientTransform? transform}) =>
this
.._gradient = LinearGradient(
colors: colors,
begin: begin,
stops: stops,
end: end,
tileMode: tileMode,
transform: transform);