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