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