Movie constructor
Movie({
- required int id,
- required String originalLanguage,
- String? backdropPath,
- String? posterPath,
- String? overview,
- num? popularity,
- int? voteCount,
- num? voteAverage,
- bool? adult,
- Date? releaseDate,
- String? originalTitle,
- String? title,
- List<
int> genreIds = const [], - bool video = false,
- Collection? belongsToCollection,
- int? budget,
- List<
Genre> genres = const [], - String? homepage,
- String? imdbId,
- List<
Company> productionCompanies = const [], - List<
Country> productionCountries = const [], - int? revenue,
- int? runtime,
- List<
Country> spokenLanguages = const [], - String? status,
- String? tagline,
- ImageCollection? images,
- List<
AlternativeTitle> alternativeTitles = const [], - Credits? credits,
- ExternalInfo? externalIds,
- List<
Keyword> keywords = const [], - List<
Video> videos = const [], - List<
MovieBase> recommendations = const [], - List<
MovieBase> similar = const [], - Map<
String, WatchProviders> watchProviders = const {},
Implementation
Movie(
{required int id,
required String originalLanguage,
String? backdropPath,
String? posterPath,
String? overview,
num? popularity,
int? voteCount,
num? voteAverage,
bool? adult,
Date? releaseDate,
String? originalTitle,
String? title,
List<int> genreIds = const [],
bool video = false,
this.belongsToCollection,
int? budget,
this.genres = const [],
this.homepage,
this.imdbId,
this.productionCompanies = const [],
this.productionCountries = const [],
int? revenue,
int? runtime,
this.spokenLanguages = const [],
this.status,
this.tagline,
this.images,
this.alternativeTitles = const [],
this.credits,
this.externalIds,
this.keywords = const [],
this.videos = const [],
this.recommendations = const [],
this.similar = const [],
this.watchProviders = const {}})
: revenue = revenue ?? 0,
runtime = runtime ?? 0,
budget = budget ?? 0,
super(
id: id,
originalLanguage: originalLanguage,
backdropPath: backdropPath,
posterPath: posterPath,
overview: overview,
popularity: popularity,
voteCount: voteCount,
voteAverage: voteAverage,
adult: adult,
releaseDate: releaseDate,
originalTitle: originalTitle,
title: title,
video: video,
genreIds: genreIds);