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