copyWith method

UCameraConfig copyWith({
  1. UCameraFacing? facing,
  2. String? deviceId,
  3. UCameraLens? lens,
  4. UCameraResolution? resolution,
  5. double? fps,
  6. bool? enableAudio,
  7. UFlashMode? flash,
  8. UFocusMode? focusMode,
  9. double? initialZoom,
  10. bool? imageStream,
  11. bool? scanning,
  12. UScanEngine? scanEngine,
  13. UCodeScanOptions? scanOptions,
  14. UFrameFormat? frameFormat,
  15. double? frameMaxFps,
  16. UCameraOrientation? lockOrientation,
  17. bool? mirrorFrontPreview,
  18. UStabilizationMode? stabilization,
  19. UHdrMode? hdr,
  20. UNightMode? nightMode,
})

Implementation

UCameraConfig copyWith({
  UCameraFacing? facing,
  String? deviceId,
  UCameraLens? lens,
  UCameraResolution? resolution,
  double? fps,
  bool? enableAudio,
  UFlashMode? flash,
  UFocusMode? focusMode,
  double? initialZoom,
  bool? imageStream,
  bool? scanning,
  UScanEngine? scanEngine,
  UCodeScanOptions? scanOptions,
  UFrameFormat? frameFormat,
  double? frameMaxFps,
  UCameraOrientation? lockOrientation,
  bool? mirrorFrontPreview,
  UStabilizationMode? stabilization,
  UHdrMode? hdr,
  UNightMode? nightMode,
}) => UCameraConfig(
  facing: facing ?? this.facing,
  deviceId: deviceId ?? this.deviceId,
  lens: lens ?? this.lens,
  resolution: resolution ?? this.resolution,
  photoResolution: photoResolution,
  previewSize: previewSize,
  fps: fps ?? this.fps,
  enableAudio: enableAudio ?? this.enableAudio,
  photoFormat: photoFormat,
  photoQuality: photoQuality,
  videoCodec: videoCodec,
  audioCodec: audioCodec,
  videoContainer: videoContainer,
  videoBitrate: videoBitrate,
  audioBitrate: audioBitrate,
  stabilization: stabilization ?? this.stabilization,
  hdr: hdr ?? this.hdr,
  nightMode: nightMode ?? this.nightMode,
  flash: flash ?? this.flash,
  focusMode: focusMode ?? this.focusMode,
  exposureMode: exposureMode,
  whiteBalance: whiteBalance,
  initialZoom: initialZoom ?? this.initialZoom,
  mirrorFrontPreview: mirrorFrontPreview ?? this.mirrorFrontPreview,
  mirrorFrontCapture: mirrorFrontCapture,
  lockOrientation: lockOrientation ?? this.lockOrientation,
  imageStream: imageStream ?? this.imageStream,
  frameFormat: frameFormat ?? this.frameFormat,
  frameMaxFps: frameMaxFps ?? this.frameMaxFps,
  frameDownscale: frameDownscale,
  scanning: scanning ?? this.scanning,
  scanEngine: scanEngine ?? this.scanEngine,
  scanOptions: scanOptions ?? this.scanOptions,
  scanInterval: scanInterval,
  scanDedupeWindow: scanDedupeWindow,
  maxRecordingDuration: maxRecordingDuration,
  maxRecordingBytes: maxRecordingBytes,
  saveToGallery: saveToGallery,
  outputDirectory: outputDirectory,
  keepScreenOn: keepScreenOn,
  playShutterSound: playShutterSound,
);