copyWith method

AudioParam copyWith({
  1. double? x,
  2. double? y,
  3. double? z,
  4. double? freq,
  5. double? volume,
})

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