copyWith method
Returns a copy with the given fields replaced.
Implementation
RadarEffectConfig copyWith({
Color? ringColor,
Color? bgColor1,
Color? bgColor2,
Color? bgColor3,
int? ringCount,
double? speed,
double? ringWidth,
double? maxRadius,
double? noiseAmount,
double? ringOpacity,
}) {
return RadarEffectConfig(
ringColor: ringColor ?? this.ringColor,
bgColor1: bgColor1 ?? this.bgColor1,
bgColor2: bgColor2 ?? this.bgColor2,
bgColor3: bgColor3 ?? this.bgColor3,
ringCount: ringCount ?? this.ringCount,
speed: speed ?? this.speed,
ringWidth: ringWidth ?? this.ringWidth,
maxRadius: maxRadius ?? this.maxRadius,
noiseAmount: noiseAmount ?? this.noiseAmount,
ringOpacity: ringOpacity ?? this.ringOpacity,
);
}