RadialGradient constructor
- AlignmentGeometry center = Alignment.center,
- double radius = 0.5,
- required List<
Color> colors, - List<
double> ? stops, - TileMode tileMode = TileMode.clamp,
- AlignmentGeometry? focal,
- double focalRadius = 0.0,
- GradientTransform? transform,
Creates a radial gradient.
If stops is non-null, it must have the same length as colors.
Implementation
const RadialGradient({
this.center = Alignment.center,
this.radius = 0.5,
required super.colors,
super.stops,
this.tileMode = TileMode.clamp,
this.focal,
this.focalRadius = 0.0,
super.transform,
});