createCameraController method Null safety

  1. @override
CameraController createCameraController(
  1. {required covariant CameraDevice device,
  2. required List<CameraOutput> outputs}

Create an instance of CameraController.

A platform implementation of PenguinCameraPlatform should implement a class of CameraController and return it here.


CameraController createCameraController({
  required covariant CameraDevice device,
  required List<CameraOutput> outputs,
}) {
  return CameraController(device: device, outputs: outputs);