copyWith method
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,
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,
);