TvShow constructor

TvShow({
  1. required int id,
  2. required String originalLanguage,
  3. String? backdropPath,
  4. String? posterPath,
  5. String? overview,
  6. num? popularity,
  7. int? voteCount,
  8. num? voteAverage,
  9. Date? firstAirDate,
  10. String? name,
  11. String? originalName,
  12. List<String> originCountry = const [],
  13. List<int> genreIds = const [],
  14. List<Creator> createdBy = const [],
  15. List<int> episodeRunTime = const [],
  16. List<Genre> genres = const [],
  17. String? homepage,
  18. bool? inProduction,
  19. List<String> languages = const [],
  20. Date? lastAirDate,
  21. EpisodeBase? lastEpisodeToAir,
  22. List<Company> networks = const [],
  23. int? numOfEpisodes,
  24. int? numOfSeasons,
  25. List<Company> productionCompanies = const [],
  26. List<SeasonBase> seasons = const [],
  27. String? status,
  28. String? type,
  29. ImageCollection? images,
  30. List<AlternativeTitle> alternativeTitles = const [],
  31. Credits? credits,
  32. ExternalInfo? externalIds,
  33. List<Keyword> keywords = const [],
  34. List<Video> videos = const [],
  35. List<TvBase> recommendations = const [],
  36. List<TvBase> similar = const [],
  37. Map<String, WatchProviders> watchProviders = const {},
})

Implementation

TvShow({
  required int id,
  required String originalLanguage,
  String? backdropPath,
  String? posterPath,
  String? overview,
  num? popularity,
  int? voteCount,
  num? voteAverage,
  Date? firstAirDate,
  String? name,
  String? originalName,
  List<String> originCountry = const [],
  List<int> genreIds = const [],
  this.createdBy = const [],
  this.episodeRunTime = const [],
  this.genres = const [],
  this.homepage,
  bool? inProduction,
  this.languages = const [],
  this.lastAirDate,
  this.lastEpisodeToAir,
  this.networks = const [],
  int? numOfEpisodes,
  int? numOfSeasons,
  this.productionCompanies = const [],
  this.seasons = const [],
  this.status,
  this.type,
  this.images,
  this.alternativeTitles = const [],
  this.credits,
  this.externalIds,
  this.keywords = const [],
  this.videos = const [],
  this.recommendations = const [],
  this.similar = const [],
  this.watchProviders = const {},
})  : numOfEpisodes = numOfEpisodes ?? 0,
      numOfSeasons = numOfSeasons ?? 0,
      inProduction = inProduction ?? false,
      super(
          id: id,
          originalLanguage: originalLanguage,
          backdropPath: backdropPath,
          posterPath: posterPath,
          overview: overview,
          popularity: popularity,
          voteCount: voteCount,
          voteAverage: voteAverage,
          firstAirDate: firstAirDate,
          name: name,
          originalName: originalName,
          originCountry: originCountry,
          genreIds: genreIds);