CSSRadialGradient constructor
CSSRadialGradient({
- AlignmentGeometry center = Alignment.center,
- double radius = 1.0,
- required List<
Color> colors, - List<
double> ? stops, - TileMode tileMode = TileMode.clamp,
- GradientTransform? transform,
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
CSSRadialGradient({
AlignmentGeometry center = Alignment.center,
double radius = 1.0,
required List<Color> colors,
List<double>? stops,
TileMode tileMode = TileMode.clamp,
GradientTransform? transform,
}) : super(center: center, radius: radius, colors: colors, stops: stops, tileMode: tileMode, transform: transform);