copyWith method
SweepShadedSteps
copyWith({
- ColorArithmetic? shadeFunction,
- double? shadeFactor,
- double? distance,
- double? softness,
- List<
Color> ? colors, - List<
double> ? stops, - TileMode? tileMode,
- AlignmentGeometry? center,
- double? startAngle,
- double? endAngle,
- GradientTransform? transform,
override
📋 Returns a new copy of this SweepShadedSteps
with any provided
optional parameters overriding those of this
.
Implementation
@override
SweepShadedSteps copyWith({
ColorArithmetic? shadeFunction,
double? shadeFactor,
double? distance,
double? softness,
List<Color>? colors,
List<double>? stops,
TileMode? tileMode,
AlignmentGeometry? center,
double? startAngle,
double? endAngle,
GradientTransform? transform,
}) =>
SweepShadedSteps(
shadeFunction: shadeFunction ?? this.shadeFunction,
shadeFactor: shadeFactor ?? this.shadeFactor,
distance: distance ?? this.distance,
softness: softness ?? this.softness,
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,
);