Movie constructor

Movie({
  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. bool? adult,
  10. Date? releaseDate,
  11. String? originalTitle,
  12. String? title,
  13. List<int> genreIds = const [],
  14. bool video = false,
  15. Collection? belongsToCollection,
  16. int? budget,
  17. List<Genre> genres = const [],
  18. String? homepage,
  19. String? imdbId,
  20. List<Company> productionCompanies = const [],
  21. List<Country> productionCountries = const [],
  22. int? revenue,
  23. int? runtime,
  24. List<Country> spokenLanguages = const [],
  25. String? status,
  26. String? tagline,
  27. ImageCollection? images,
  28. List<AlternativeTitle> alternativeTitles = const [],
  29. Credits? credits,
  30. ExternalInfo? externalIds,
  31. List<Keyword> keywords = const [],
  32. List<Video> videos = const [],
  33. List<MovieBase> recommendations = const [],
  34. List<MovieBase> similar = const [],
  35. 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);