CSSRadialGradient constructor

CSSRadialGradient({
  1. AlignmentGeometry center = Alignment.center,
  2. double radius = 1.0,
  3. required List<Color> colors,
  4. List<double>? stops,
  5. TileMode tileMode = TileMode.clamp,
  6. GradientTransform? transform,
})

Creates a linear gradient.

The colors argument must not be null. If stops is non-null, it must have the same length as colors.

Implementation

CSSRadialGradient({
  AlignmentGeometry center = Alignment.center,
  double radius = 1.0,
  required List<Color> colors,
  List<double>? stops,
  TileMode tileMode = TileMode.clamp,
  GradientTransform? transform,
}) : super(center: center, radius: radius, colors: colors, stops: stops, tileMode: tileMode, transform: transform);