copyWith method

  1. @override
RadialShadedSteps copyWith({
  1. ColorArithmetic? shadeFunction,
  2. double? shadeFactor,
  3. double? distance,
  4. double? softness,
  5. List<Color>? colors,
  6. List<double>? stops,
  7. TileMode? tileMode,
  8. AlignmentGeometry? center,
  9. double? radius,
  10. AlignmentGeometry? focal,
  11. double? focalRadius,
  12. GradientTransform? transform,
})
override

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

Implementation

@override
RadialShadedSteps copyWith({
  ColorArithmetic? shadeFunction,
  double? shadeFactor,
  double? distance,
  double? softness,
  List<Color>? colors,
  List<double>? stops,
  TileMode? tileMode,
  AlignmentGeometry? center,
  double? radius,
  AlignmentGeometry? focal,
  double? focalRadius,
  GradientTransform? transform,
}) =>
    RadialShadedSteps(
      shadeFunction: shadeFunction ?? this.shadeFunction,
      shadeFactor: shadeFactor ?? this.shadeFactor,
      distance: distance ?? this.distance,
      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,
    );