copyWith method
Implementation
ReadingProgress copyWith({
String? itemImgUrl,
String? itemOwnerName,
}) {
return ReadingProgress(
itemId: itemId,
itemName: itemName,
itemImgUrl: itemImgUrl ?? this.itemImgUrl,
itemOwnerName: itemOwnerName ?? this.itemOwnerName,
maxPageReached: maxPageReached,
totalPages: totalPages,
sessionCount: sessionCount,
totalReadingTime: totalReadingTime,
totalPagesRead: totalPagesRead,
pagesViewed: pagesViewed,
lastReadTime: lastReadTime,
);
}