copyWith method

TheMovieDetail copyWith({
  1. bool? adult,
  2. String? backdropPath,
  3. TheMovieDetailBelongsToCollection? belongsToCollection,
  4. int? budget,
  5. List<TheMovieDetailGenres>? genres,
  6. String? homepage,
  7. int? id,
  8. String? imdbId,
  9. String? originalLanguage,
  10. String? originalTitle,
  11. String? overview,
  12. num? popularity,
  13. String? posterPath,
  14. List<TheMovieDetailProductionCompanies>? productionCompanies,
  15. List<TheMovieDetailProductionCountries>? productionCountries,
  16. String? releaseDate,
  17. int? revenue,
  18. int? runtime,
  19. List<TheMovieDetailSpokenLanguages>? spokenLanguages,
  20. String? status,
  21. String? tagline,
  22. String? title,
  23. bool? video,
  24. num? voteAverage,
  25. int? voteCount,
})

Implementation

TheMovieDetail copyWith({
  bool? adult,
  String? backdropPath,
  TheMovieDetailBelongsToCollection? belongsToCollection,
  int? budget,
  List<TheMovieDetailGenres>? genres,
  String? homepage,
  int? id,
  String? imdbId,
  String? originalLanguage,
  String? originalTitle,
  String? overview,
  num? popularity,
  String? posterPath,
  List<TheMovieDetailProductionCompanies>? productionCompanies,
  List<TheMovieDetailProductionCountries>? productionCountries,
  String? releaseDate,
  int? revenue,
  int? runtime,
  List<TheMovieDetailSpokenLanguages>? spokenLanguages,
  String? status,
  String? tagline,
  String? title,
  bool? video,
  num? voteAverage,
  int? voteCount,
}) =>
    TheMovieDetail(
      adult: adult ?? this.adult,
      backdropPath: backdropPath ?? this.backdropPath,
      belongsToCollection: belongsToCollection ?? this.belongsToCollection,
      budget: budget ?? this.budget,
      genres: genres ?? this.genres,
      homepage: homepage ?? this.homepage,
      id: id ?? this.id,
      imdbId: imdbId ?? this.imdbId,
      originalLanguage: originalLanguage ?? this.originalLanguage,
      originalTitle: originalTitle ?? this.originalTitle,
      overview: overview ?? this.overview,
      popularity: popularity ?? this.popularity,
      posterPath: posterPath ?? this.posterPath,
      productionCompanies: productionCompanies ?? this.productionCompanies,
      productionCountries: productionCountries ?? this.productionCountries,
      releaseDate: releaseDate ?? this.releaseDate,
      revenue: revenue ?? this.revenue,
      runtime: runtime ?? this.runtime,
      spokenLanguages: spokenLanguages ?? this.spokenLanguages,
      status: status ?? this.status,
      tagline: tagline ?? this.tagline,
      title: title ?? this.title,
      video: video ?? this.video,
      voteAverage: voteAverage ?? this.voteAverage,
      voteCount: voteCount ?? this.voteCount,
    );