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