CameraController.customConfigurator constructor

CameraController.customConfigurator({
  1. required CameraDescriptionNew description,
  2. required CameraConfigurator configurator,
})

Constructor for defining your own CameraConfigurator.

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

Implementation

factory CameraController.customConfigurator({
  required CameraDescriptionNew description,
  required CameraConfigurator configurator,
}) {
  return CameraController._(
    description: description,
    configurator: configurator,
    api: _getCameraApi(description),
  );
}