copyWith method

VisualizerConfig copyWith({
  1. List<Color>? colors,
  2. double? thickness,
  3. double? glow,
  4. double? radius,
  5. double? intensity,
  6. double? smoothing,
  7. double? peakDecay,
  8. String? frequencyMap,
})

Implementation

VisualizerConfig copyWith({
  List<Color>? colors,
  double? thickness,
  double? glow,
  double? radius,
  double? intensity,
  double? smoothing,
  double? peakDecay,
  String? frequencyMap,
}) {
  return VisualizerConfig(
    colors: colors ?? this.colors,
    thickness: thickness ?? this.thickness,
    glow: glow ?? this.glow,
    radius: radius ?? this.radius,
    intensity: intensity ?? this.intensity,
    smoothing: smoothing ?? this.smoothing,
    peakDecay: peakDecay ?? this.peakDecay,
    frequencyMap: frequencyMap ?? this.frequencyMap,
  );
}