Manga constructor Null safety

Manga(
  1. {required String id,
  2. required Map<String, dynamic> title,
  3. required List altTitles,
  4. required Map<String, dynamic> description,
  5. required bool? isLocked,
  6. required String originalLang,
  7. required List tags,
  8. required String createdAt,
  9. required String updatedAt,
  10. String? demographic,
  11. String? lastChapter,
  12. String? lastVolume,
  13. String? contentRating,
  14. Map<String, dynamic>? links,
  15. String? releaseYear,
  16. String? status,
  17. Map<String, dynamic>? chapters,
  18. List<String>? covers}
)

Implementation

Manga(
    {required this.id,
    required this.title,
    required this.altTitles,
    required this.description,
    required this.isLocked,
    required this.originalLang,
    required this.tags,
    required this.createdAt,
    required this.updatedAt,
    this.demographic,
    this.lastChapter,
    this.lastVolume,
    this.contentRating,
    this.links,
    this.releaseYear,
    this.status,
    this.chapters,
    this.covers});