copyWith method

AudioDevice copyWith({
  1. String? id,
  2. AudioSourceType? type,
})

Create a copy of AudioDevice

Implementation

AudioDevice copyWith({
  String? id,
  AudioSourceType? type,
}) {
  return AudioDevice(
    id: id ?? this.id,
    type: type ?? this.type,
  );
}