copyWith method

LinearSteps copyWith({
  1. double? softness,
  2. List<Color>? colors,
  3. List<double>? stops,
  4. AlignmentGeometry? begin,
  5. AlignmentGeometry? end,
  6. TileMode? tileMode,
  7. GradientTransform? transform,
})

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

Implementation

LinearSteps copyWith({
  double? softness,
  List<Color>? colors,
  List<double>? stops,
  AlignmentGeometry? begin,
  AlignmentGeometry? end,
  TileMode? tileMode,
  GradientTransform? transform,
}) =>
    LinearSteps(
      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,
    );