copyWith method

RadialGradient copyWith({
  1. AlignmentGeometry? center,
  2. double? radius,
  3. List<Color>? colors,
  4. List<double>? stops,
  5. TileMode? tileMode,
  6. AlignmentGeometry? focal,
  7. double? focalRadius,
  8. GradientTransform? transform,
})

📋 Returns a new copy of this RadialGradient with any provided optional parameters overriding those of this.

Implementation

RadialGradient copyWith({
  AlignmentGeometry? center,
  double? radius,
  List<Color>? colors,
  List<double>? stops,
  TileMode? tileMode,
  AlignmentGeometry? focal,
  double? focalRadius,
  GradientTransform? transform,
}) =>
    RadialGradient(
      center: center ?? this.center,
      radius: radius ?? this.radius,
      colors: colors ?? this.colors,
      stops: stops ?? this.stops,
      tileMode: tileMode ?? this.tileMode,
      focal: focal ?? this.focal,
      focalRadius: focalRadius ?? this.focalRadius,
      transform: transform ?? this.transform,
    );