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