TvShow constructor
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 [], - List<
Creator> createdBy = const [], - List<
int> episodeRunTime = const [], - List<
Genre> genres = const [], - String? homepage,
- bool? inProduction,
- List<
String> languages = const [], - Date? lastAirDate,
- EpisodeBase? lastEpisodeToAir,
- List<
Company> networks = const [], - int? numOfEpisodes,
- int? numOfSeasons,
- List<
Company> productionCompanies = const [], - List<
SeasonBase> seasons = const [], - String? status,
- String? type,
- ImageCollection? images,
- List<
AlternativeTitle> alternativeTitles = const [], - Credits? credits,
- ExternalInfo? externalIds,
- List<
Keyword> keywords = const [], - List<
Video> videos = const [], - List<
TvBase> recommendations = const [], - List<
TvBase> similar = const [], - 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);