copyWith method

RemoteFile copyWith({
  1. String? id,
  2. String? uniqueId,
  3. bool? isUploadingActive,
  4. bool? isUploadingCompleted,
  5. int? uploadedSize,
})

Implementation

RemoteFile copyWith({
  String? id,
  String? uniqueId,
  bool? isUploadingActive,
  bool? isUploadingCompleted,
  int? uploadedSize,
}) => RemoteFile(
  id: id ?? this.id,
  uniqueId: uniqueId ?? this.uniqueId,
  isUploadingActive: isUploadingActive ?? this.isUploadingActive,
  isUploadingCompleted: isUploadingCompleted ?? this.isUploadingCompleted,
  uploadedSize: uploadedSize ?? this.uploadedSize,
);