copyWith method
LinearGradient
copyWith({
- AlignmentGeometry? begin,
- AlignmentGeometry? end,
- List<
Color> ? colors, - List<
double> ? stops, - TileMode? tileMode,
- GradientTransform? transform,
📋 Returns a new copy of this LinearGradient
with any provided
optional parameters overriding those of this
.
Implementation
LinearGradient copyWith({
AlignmentGeometry? begin,
AlignmentGeometry? end,
List<Color>? colors,
List<double>? stops,
TileMode? tileMode,
GradientTransform? transform,
}) =>
LinearGradient(
begin: begin ?? this.begin,
end: end ?? this.end,
colors: colors ?? this.colors,
stops: stops ?? this.stops,
tileMode: tileMode ?? this.tileMode,
transform: transform ?? this.transform,
);