onDeviceListChanged property
EventStream<List<AudioDeviceInfo> >
get
onDeviceListChanged
Fired when audio devices change, either new devices being added, or existing devices being removed. |devices|: List of all present audio devices after the change.
Implementation
EventStream<List<AudioDeviceInfo>> get onDeviceListChanged =>
$js.chrome.audio.onDeviceListChanged.asStream(($c) => (JSArray devices) {
return $c(devices.toDart
.cast<$js.AudioDeviceInfo>()
.map((e) => AudioDeviceInfo.fromJS(e))
.toList());
}.toJS);