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