copyWith method

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

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

Implementation

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