copyWith method

DocumentScanState copyWith({
  1. bool? isProcessing,
  2. bool? showError,
  3. double? uploadProgress,
  4. CameraState? cameraState,
  5. File? capturedImage,
  6. File? videoRecordingFile,
  7. AppScreen? screen,
  8. 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,
  );
}