BookInfo constructor Null safety

const BookInfo(
  1. {required String title,
  2. required String subtitle,
  3. required List<String> authors,
  4. required String publisher,
  5. required double averageRating,
  6. required List<String> categories,
  7. required String contentVersion,
  8. required String description,
  9. required List<IndustryIdentifier> industryIdentifiers,
  10. required Map<String, Uri> imageLinks,
  11. required String language,
  12. required String maturityRating,
  13. required int pageCount,
  14. required DateTime? publishedDate,
  15. required String rawPublishedDate,
  16. required int ratingsCount,
  17. required Uri previewLink,
  18. required Uri infoLink,
  19. required Uri canonicalVolumeLink}
)

Implementation

const BookInfo({
  required this.title,
  required this.subtitle,
  required this.authors,
  required this.publisher,
  required this.averageRating,
  required this.categories,
  required this.contentVersion,
  required this.description,
  required this.industryIdentifiers,
  required this.imageLinks,
  required this.language,
  required this.maturityRating,
  required this.pageCount,
  required this.publishedDate,
  required this.rawPublishedDate,
  required this.ratingsCount,
  required this.previewLink,
  required this.infoLink,
  required this.canonicalVolumeLink,
});