numberOfCameras property

Future<int> 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('numberOfCameras') as int;
}