copyWith method

FileState copyWith({
  1. String? uploadFile,
  2. String? downloadFile,
  3. String? remoteFileName,
  4. String? cleanFileName,
  5. String? remoteFileUrl,
  6. String? filePreview,
  7. String? currentPath,
  8. bool? uploadInProgress,
  9. bool? downloadInProgress,
  10. bool? deleteInProgress,
  11. bool? importInProgress,
  12. bool? exportInProgress,
  13. bool? uploadDone,
  14. bool? downloadDone,
  15. bool? deleteDone,
  16. bool? showPreview,
})

Creates a copy of this FileState with the given fields replaced with new values.

Implementation

FileState copyWith({
  String? uploadFile,
  String? downloadFile,
  String? remoteFileName,
  String? cleanFileName,
  String? remoteFileUrl,
  String? filePreview,
  String? currentPath,
  bool? uploadInProgress,
  bool? downloadInProgress,
  bool? deleteInProgress,
  bool? importInProgress,
  bool? exportInProgress,
  bool? uploadDone,
  bool? downloadDone,
  bool? deleteDone,
  bool? showPreview,
}) {
  return FileState(
    uploadFile: uploadFile ?? this.uploadFile,
    downloadFile: downloadFile ?? this.downloadFile,
    remoteFileName: remoteFileName ?? this.remoteFileName,
    cleanFileName: cleanFileName ?? this.cleanFileName,
    remoteFileUrl: remoteFileUrl ?? this.remoteFileUrl,
    filePreview: filePreview ?? this.filePreview,
    currentPath: currentPath ?? this.currentPath,
    uploadInProgress: uploadInProgress ?? this.uploadInProgress,
    downloadInProgress: downloadInProgress ?? this.downloadInProgress,
    deleteInProgress: deleteInProgress ?? this.deleteInProgress,
    importInProgress: importInProgress ?? this.importInProgress,
    exportInProgress: exportInProgress ?? this.exportInProgress,
    uploadDone: uploadDone ?? this.uploadDone,
    downloadDone: downloadDone ?? this.downloadDone,
    deleteDone: deleteDone ?? this.deleteDone,
    showPreview: showPreview ?? this.showPreview,
  );
}