CamController constructor

CamController({
  1. required ControllerNotifier controllerNotifier,
  2. required BuildContext context,
  3. ResolutionPreset? resolutionPreset,
  4. ImageFormatGroup? imageFormatGroup,
})

Implementation

CamController({
  required ControllerNotifier controllerNotifier,
  required BuildContext context,
  ResolutionPreset? resolutionPreset,
  ImageFormatGroup? imageFormatGroup,
})  : _controllerNotifier = controllerNotifier,
      _uiHandler = UIHandler(context),
      zoom = Zoom(controllerNotifier),
      exposure = Exposure(controllerNotifier, UIHandler(context)),
      super(ActionValue(
        resolutionPreset: resolutionPreset ?? ResolutionPreset.veryHigh,
        imageFormatGroup: imageFormatGroup ?? ImageFormatGroup.jpeg,
      ));