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