numberOfCameras property

Future<int> get numberOfCameras

Returns the number of cameras which are available Use n-1 as the index of the camera which should be used.

Implementation

static Future<int> get numberOfCameras async {
  return (await _channel.invokeMethod<int>('numberOfCameras'))!;
}