copyWith method

ReadingProgress copyWith({
  1. String? itemImgUrl,
  2. String? itemOwnerName,
})

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