getVideoInputDevices method Null safety
Implementation
Future<List<MediaDeviceInfo>> getVideoInputDevices() async {
return (await navigator.mediaDevices.enumerateDevices())
.where((element) => element.kind == 'videoinput')
.toList();
}