copyWith method

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

Implementation

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