RadialGradient constructor

const RadialGradient({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 })

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

const RadialGradient({
  this.center = Alignment.center,
  this.radius = 0.5,
  @required List<Color> colors,
  List<double> stops,
  this.tileMode = TileMode.clamp,
  this.focal,
  this.focalRadius = 0.0
}) : assert(center != null),
     assert(radius != null),
     assert(tileMode != null),
     assert(focalRadius != null),
     super(colors: colors, stops: stops);