SaveConfig.photoAndVideo constructor

SaveConfig.photoAndVideo({
  1. CaptureRequestBuilder? photoPathBuilder,
  2. CaptureRequestBuilder? videoPathBuilder,
  3. CaptureMode initialCaptureMode = CaptureMode.photo,
  4. VideoOptions? videoOptions,
  5. ExifPreferences? exifPreferences,
  6. bool mirrorFrontCamera = false,
})

You want to be able to take both photos and videos

Implementation

SaveConfig.photoAndVideo({
  CaptureRequestBuilder? photoPathBuilder,
  CaptureRequestBuilder? videoPathBuilder,
  CaptureMode initialCaptureMode = CaptureMode.photo,
  VideoOptions? videoOptions,
  ExifPreferences? exifPreferences,
  bool mirrorFrontCamera = false,
}) : this._(
        photoPathBuilder: photoPathBuilder ??
            (sensors) => AwesomeCaptureRequestBuilder()
                .build(captureMode: CaptureMode.photo, sensors: sensors),
        videoPathBuilder: videoPathBuilder ??
            (sensors) => AwesomeCaptureRequestBuilder()
                .build(captureMode: CaptureMode.video, sensors: sensors),
        captureModes: [CaptureMode.photo, CaptureMode.video],
        initialCaptureMode: initialCaptureMode,
        videoOptions: videoOptions,
        exifPreferences: exifPreferences,
        mirrorFrontCamera: mirrorFrontCamera,
      );