copyWith method
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,
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,
);