copyWith method Null safety

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

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

Implementation

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