getIosAvailableCameras method

Future<List<IosCamera>> getIosAvailableCameras()

Gets all available iOS cameras.

Implementation

Future<List<IosCamera>> getIosAvailableCameras() async {
  final availableCameras =
      (await _channel.invokeListMethod<dynamic>(_getIosAvailableCameras))!;
  return availableCameras
      .map((json) => IosCamera.fromJson(Map<String, dynamic>.from(json)))
      .toList();
}