getAllCameraDevices method

  1. @override
Future<List<CameraDevice>> getAllCameraDevices()
override

Retrieve information for all available camera devices.

Implementation

@override
Future<List<CameraDevice>> getAllCameraDevices() async {
  final List<CameraInfo> allInfo = await Camera.getAllCameraInfo();
  return allInfo
      .map<CameraDevice>((CameraInfo info) => CameraDevice(info))
      .toList();
}