radialGradient method
void
radialGradient({
- AlignmentGeometry center = Alignment.center,
- required double radius,
- required List<
Color> colors, - TileMode tileMode = TileMode.clamp,
- List<
double> ? stops,
inherited
Creates a radial gradient.
The colors
argument must not be null. If stops
is non-null, it must have the same length as colors
.
Implementation
void radialGradient(
{AlignmentGeometry center = Alignment.center,
required double radius,
required List<Color> colors,
TileMode tileMode = TileMode.clamp,
List<double>? stops}) {
_styleModel.gradient = RadialGradient(
center: center,
radius: radius,
colors: colors,
tileMode: tileMode,
stops: stops,
);
}