copyWith method
UploadTask
copyWith({
- String? id,
- String? mediaId,
- String? localPath,
- String? storagePath,
- CloudMediaType? type,
- int? retryCount,
- DateTime? createdAt,
- DateTime? lastAttemptAt,
- UploadTaskStatus? taskStatus,
Implementation
UploadTask copyWith({
String? id,
String? mediaId,
String? localPath,
String? storagePath,
CloudMediaType? type,
int? retryCount,
DateTime? createdAt,
DateTime? lastAttemptAt,
UploadTaskStatus? taskStatus,
}) {
return UploadTask(
id: id ?? this.id,
mediaId: mediaId ?? this.mediaId,
localPath: localPath ?? this.localPath,
storagePath: storagePath ?? this.storagePath,
type: type ?? this.type,
retryCount: retryCount ?? this.retryCount,
createdAt: createdAt ?? this.createdAt,
lastAttemptAt: lastAttemptAt ?? this.lastAttemptAt,
taskStatus: taskStatus ?? this.taskStatus,
);
}