enumerateDevices static method
Implementation
static Future<List<MediaDeviceInfo>> enumerateDevices(String type) async {
var devices = await navigator.mediaDevices.enumerateDevices();
return devices.where((d) => d.kind == type).toList();
}
static Future<List<MediaDeviceInfo>> enumerateDevices(String type) async {
var devices = await navigator.mediaDevices.enumerateDevices();
return devices.where((d) => d.kind == type).toList();
}