enumerateDevices static method

Future<List<MediaDeviceInfo>> enumerateDevices(
  1. String type
)

Implementation

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