copyWith method

RadarEffectConfig copyWith({
  1. Color? ringColor,
  2. Color? bgColor1,
  3. Color? bgColor2,
  4. Color? bgColor3,
  5. int? ringCount,
  6. double? speed,
  7. double? ringWidth,
  8. double? maxRadius,
  9. double? noiseAmount,
  10. double? ringOpacity,
})

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,
  );
}