copyWith method

AudioOutputOptions copyWith({
  1. String? deviceId,
  2. bool? speakerOn,
})

Implementation

AudioOutputOptions copyWith({String? deviceId, bool? speakerOn}) {
  return AudioOutputOptions(
    deviceId: deviceId ?? this.deviceId,
    speakerOn: speakerOn ?? this.speakerOn,
  );
}