availableCameras method

  1. @override
Future<List<XCameraDescription>> availableCameras()
override

Enumerate camera devices. The result is stable for the lifetime of the process.

Implementation

@override
Future<List<XCameraDescription>> availableCameras() async {
  availableCamerasCalls += 1;
  return cameras;
}