CameraController constructor

CameraController({
  1. required CameraDevice device,
  2. required List<CameraOutput> outputs,
})

Construct a CameraController.

Implementation

CameraController({required this.device, required this.outputs})
    : assert(
        outputs.any((CameraOutput output) => output is PreviewOutput),
        'At least one output should be a PreviewOutput.',
      );