RadialGradientPainter constructor

const RadialGradientPainter({
  1. AlignmentGeometry center = Alignment.center,
  2. double radius = 0.5,
  3. required List<Color> colors,
  4. List<double>? stops,
  5. TileMode tileMode = TileMode.clamp,
  6. AlignmentGeometry? focal,
  7. double focalRadius = 0.0,
  8. GradientTransform? transform,
  9. ColorSpace? colorSpace,
  10. bool invert = false,
  11. 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,
      );