copyWith method

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

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

Implementation

LinearSteps copyWith({
  List<Color>? colors,
  List<double>? stops,
  AlignmentGeometry? begin,
  AlignmentGeometry? end,
  TileMode? tileMode,
  GradientTransform? transform,
}) =>
    LinearSteps(
      colors: colors ?? this.colors,
      stops: stops ?? this.stops,
      begin: begin ?? this.begin,
      end: end ?? this.end,
      tileMode: tileMode ?? this.tileMode,
      transform: transform ?? this.transform,
    );