CameraController constructor

CameraController({
  1. required CameraDescription description,
})

Default constructor.

Use CameraController.availableCameras to get a list of available cameras.

This will choose the best CameraConfigurator for the current device.

Implementation

factory CameraController({required CameraDescription description}) {
  return CameraController._(
    description: description,
    configurator: _createDefaultConfigurator(description)!,
    api: _getCameraApi(description),
  );
}