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