copyWith method
Create a copy of the AudioParam with the given non-null values.
Implementation
AudioParam copyWith({
double? x,
double? y,
double? z,
double? freq,
double? volume,
}) {
return AudioParam(
x: x ?? this.x,
y: y ?? this.y,
z: z ?? this.z,
freq: freq ?? this.freq,
volume: volume ?? this.volume,
);
}