copyWith method
VideoCaptureConfig
copyWith({
- CameraLensDirection? cameraLensDirection,
- bool? allowCameraSwitching,
- bool? allowFlashSetting,
- Duration? maxLength,
- CameraOrientation? cameraOrientation,
- ResolutionPreset? resolutionPreset,
- CaptureWidgetBuilders? captureWidgetBuilders,
- VideoCaptureCallbacks? cameraModuleCallbacks,
- bool? shouldCompress,
- int? uniqueIdNumber,
override
Implementation
@override
VideoCaptureConfig copyWith({
CameraLensDirection? cameraLensDirection,
bool? allowCameraSwitching,
bool? allowFlashSetting,
Duration? maxLength,
CameraOrientation? cameraOrientation,
ResolutionPreset? resolutionPreset,
CaptureWidgetBuilders? captureWidgetBuilders,
VideoCaptureCallbacks? cameraModuleCallbacks,
bool? shouldCompress,
int? uniqueIdNumber,
}) {
return VideoCaptureConfig(
defaultCameraLensDirection:
cameraLensDirection ?? defaultCameraLensDirection,
allowCameraSwitching: allowCameraSwitching ?? this.allowCameraSwitching,
allowFlashSetting: allowFlashSetting ?? this.allowFlashSetting,
cameraOrientation: cameraOrientation ?? this.cameraOrientation,
// embedImageMetadata: embedImageMetadata ?? this.embedImageMetadata,
resolutionPreset: resolutionPreset ?? this.resolutionPreset,
captureWidgetBuilders:
captureWidgetBuilders ?? this.captureWidgetBuilders,
maxLength: maxLength ?? this.maxLength,
cameraModuleCallbacks: cameraModuleCallbacks ??
(this.cameraModuleCallbacks as VideoCaptureCallbacks?),
shouldCompress: shouldCompress ?? this.shouldCompress,
uniqueIdNumber: uniqueIdNumber ?? this.uniqueIdNumber);
}