radialGradient method

void radialGradient({
  1. AlignmentGeometry center = Alignment.center,
  2. required double radius,
  3. required List<Color> colors,
  4. TileMode tileMode = TileMode.clamp,
  5. List<double>? stops,
})
inherited

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

void radialGradient(
    {AlignmentGeometry center = Alignment.center,
    required double radius,
    required List<Color> colors,
    TileMode tileMode = TileMode.clamp,
    List<double>? stops}) {
  _styleModel.gradient = RadialGradient(
    center: center,
    radius: radius,
    colors: colors,
    tileMode: tileMode,
    stops: stops,
  );
}