copyWith method

  1. @override
LinearShadedSteps copyWith({
  1. ColorArithmetic? shadeFunction,
  2. double? shadeFactor,
  3. double? distance,
  4. double? softness,
  5. List<Color>? colors,
  6. List<double>? stops,
  7. AlignmentGeometry? begin,
  8. AlignmentGeometry? end,
  9. TileMode? tileMode,
  10. GradientTransform? transform,
})
override

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

Implementation

@override
LinearShadedSteps copyWith({
  ColorArithmetic? shadeFunction,
  double? shadeFactor,
  double? distance,
  double? softness,
  List<Color>? colors,
  List<double>? stops,
  AlignmentGeometry? begin,
  AlignmentGeometry? end,
  TileMode? tileMode,
  GradientTransform? transform,
}) =>
    LinearShadedSteps(
      shadeFunction: shadeFunction ?? this.shadeFunction,
      shadeFactor: shadeFactor ?? this.shadeFactor,
      distance: distance ?? this.distance,
      softness: softness ?? this.softness,
      colors: colors ?? this.colors,
      stops: stops ?? this.stops,
      begin: begin ?? this.begin,
      end: end ?? this.end,
      tileMode: tileMode ?? this.tileMode,
      transform: transform ?? this.transform,
    );