copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
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,
);