MovieBase constructor

MovieBase({
  1. required int id,
  2. required String originalLanguage,
  3. String? backdropPath,
  4. String? posterPath,
  5. String? overview,
  6. List<int> genreIds = const [],
  7. num? popularity,
  8. int? voteCount,
  9. num? voteAverage,
  10. bool? adult,
  11. Date? releaseDate,
  12. String? originalTitle,
  13. String? title,
  14. bool video = false,
})

Implementation

MovieBase({
  required int id,
  required String originalLanguage,
  String? backdropPath,
  String? posterPath,
  String? overview,
  List<int> genreIds = const [],
  num? popularity,
  int? voteCount,
  num? voteAverage,
  bool? adult,
  this.releaseDate,
  this.originalTitle,
  String? title,
  this.video = false,
})  : title = title ?? '',
      adult = adult ?? false,
      super(
        id,
        originalLanguage,
        backdropPath,
        posterPath,
        overview,
        genreIds,
        popularity,
        voteCount,
        voteAverage,
      );