ReadingProgress constructor

ReadingProgress({
  1. required String itemId,
  2. required String itemName,
  3. String itemImgUrl = '',
  4. String itemOwnerName = '',
  5. int maxPageReached = 0,
  6. int totalPages = 0,
  7. int sessionCount = 0,
  8. int totalReadingTime = 0,
  9. int totalPagesRead = 0,
  10. Set<int> pagesViewed = const {},
  11. int lastReadTime = 0,
})

Implementation

ReadingProgress({
  required this.itemId,
  required this.itemName,
  this.itemImgUrl = '',
  this.itemOwnerName = '',
  this.maxPageReached = 0,
  this.totalPages = 0,
  this.sessionCount = 0,
  this.totalReadingTime = 0,
  this.totalPagesRead = 0,
  this.pagesViewed = const {},
  this.lastReadTime = 0,
});