getAllCameraInfo static method

Future<List<CameraInfo>> getAllCameraInfo()

Returns the information about each available camera.

Throws PlatformException if there is an error retrieving the information (generally due to a hardware or other low-level failure).

Implementation

static Future<List<CameraInfo>> getAllCameraInfo() async {
  final List<Object?> allInfo =
      await _channel.$getAllCameraInfo() as List<Object?>;
  return allInfo.cast<CameraInfo>();
}