CameraController constructor Null safety

CameraController(
  1. CameraDescription description,
  2. ResolutionPreset resolutionPreset,
  3. {bool enableAudio = true,
  4. ImageFormatGroup? imageFormatGroup}
)

Creates a new camera controller in an uninitialized state.

Implementation

CameraController(
  this.description,
  this.resolutionPreset, {
  this.enableAudio = true,
  this.imageFormatGroup,
}) : super(const CameraValue.uninitialized());