getNumberOfCameras static method

Future<int?>? getNumberOfCameras()

Retrieves the number of physical cameras available on this device.

Implementation

static Future<int?>? getNumberOfCameras() {
  return CameraChannel.channel.invokeMethod<int>(
    'Camera#getNumberOfCameras',
  );
}