RadialGradient constructor

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

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,
  GradientTransform transform,
}) : assert(center != null),
     assert(radius != null),
     assert(tileMode != null),
     assert(focalRadius != null),
     super(colors: colors, stops: stops, transform: transform);