RadialGradientPainter constructor
const
RadialGradientPainter({
- 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,
- ColorSpace? colorSpace,
- bool invert = false,
- double density = 0.125,
A 2D radial gradient.
See: RadialGradient
Implementation
const RadialGradientPainter({
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,
this.colorSpace,
this.invert = false,
this.density = 0.125,
}) : super(
center: center,
radius: radius,
colors: colors,
stops: stops,
tileMode: tileMode,
focal: focal,
focalRadius: focalRadius,
transform: transform,
);