MovieDiscoverSettings constructor

const MovieDiscoverSettings({
  1. String? certificationCountry,
  2. String? certification,
  3. String? certificationLTE,
  4. bool? includeAdult,
  5. bool? includeVideo,
  6. String? language,
  7. int? year,
  8. int? primaryReleaseYear,
  9. Date? primaryReleaseDateGTE,
  10. Date? primaryReleaseDateLTE,
  11. Date? releaseDateGTE,
  12. Date? releaseDateLTE,
  13. SortBy? sortBy,
  14. int? voteCountGTE,
  15. int? voteCountLTE,
  16. num? voteAverageGTE,
  17. num? voteAverageLTE,
  18. int? withCast,
  19. int? withCrew,
  20. List<int>? withCompanies,
  21. List<int>? withGenres,
  22. List<int>? withKeywords,
  23. List<int>? withPeople,
  24. QualitySettings quality = const QualitySettings(),
})

Implementation

const MovieDiscoverSettings({
  this.certificationCountry,
  this.certification,
  this.certificationLTE,
  bool? includeAdult,
  this.includeVideo,
  String? language,
  int? year,
  int? primaryReleaseYear,
  this.primaryReleaseDateGTE,
  this.primaryReleaseDateLTE,
  this.releaseDateGTE,
  this.releaseDateLTE,
  this.sortBy,
  this.voteCountGTE,
  this.voteCountLTE,
  this.voteAverageGTE,
  this.voteAverageLTE,
  this.withCast,
  this.withCrew,
  this.withCompanies,
  this.withGenres,
  this.withKeywords,
  this.withPeople,
  QualitySettings quality = const QualitySettings(),
})  : assert(voteCountGTE == null || voteCountGTE >= 0),
      assert(voteCountLTE == null || voteCountLTE >= 1),
      assert(voteAverageGTE == null ||
          voteAverageGTE >= 0 && voteAverageGTE <= 10),
      assert(voteAverageLTE == null ||
          voteAverageLTE >= 0 &&
              (voteAverageGTE != null && voteAverageGTE <= 10)),
      super(
        language: language,
        includeAdult: includeAdult,
        year: year,
        primaryReleaseYear: primaryReleaseYear,
        quality: quality,
      );