setActiveDevices method
Sets lists of active input and/or output devices. |ids|: Specifies IDs of devices that should be active. If either the input or output list is not set, devices in that category are unaffected.
It is an error to pass in a non-existent device ID.
Implementation
Future<void> setActiveDevices(DeviceIdLists ids) async {
await promiseToFuture<void>($js.chrome.audio.setActiveDevices(ids.toJS));
}