copyWith method
DocumentScanState
copyWith({
- bool? isProcessing,
- bool? showError,
- double? uploadProgress,
- CameraState? cameraState,
- File? capturedImage,
- File? videoRecordingFile,
- AppScreen? screen,
- DocumentSide? currentSide,
Implementation
DocumentScanState copyWith({
bool? isProcessing,
bool? showError,
double? uploadProgress,
CameraState? cameraState,
File? capturedImage,
File? videoRecordingFile,
AppScreen? screen,
DocumentSide? currentSide,
}) {
return DocumentScanState(
isProcessing: isProcessing ?? this.isProcessing,
showError: showError ?? this.showError,
uploadProgress: uploadProgress ?? this.uploadProgress,
cameraState: cameraState ?? this.cameraState,
capturedImage: capturedImage ?? this.capturedImage,
videoRecordingFile: videoRecordingFile ?? this.videoRecordingFile,
screen: screen ?? this.screen,
currentSide: currentSide ?? this.currentSide,
);
}