CameraController constructor

CameraController({
  1. required CameraDescriptionNew 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 CameraDescriptionNew description}) {
  return CameraController._(
    description: description,
    configurator: _createDefaultConfigurator(description),
    api: _getCameraApi(description),
  );
}