copyWith method

TheMoviePersonCast copyWith({
  1. String? character,
  2. String? creditId,
  3. String? releaseDate,
  4. int? voteCount,
  5. bool? video,
  6. bool? adult,
  7. num? voteAverage,
  8. String? title,
  9. List<int>? genreIds,
  10. String? originalLanguage,
  11. String? originalTitle,
  12. num? popularity,
  13. int? id,
  14. String? backdropPath,
  15. String? overview,
  16. String? posterPath,
})

Implementation

TheMoviePersonCast copyWith({
  String? character,
  String? creditId,
  String? releaseDate,
  int? voteCount,
  bool? video,
  bool? adult,
  num? voteAverage,
  String? title,
  List<int>? genreIds,
  String? originalLanguage,
  String? originalTitle,
  num? popularity,
  int? id,
  String? backdropPath,
  String? overview,
  String? posterPath,
}) =>
    TheMoviePersonCast(
      character: character ?? this.character,
      creditId: creditId ?? this.creditId,
      releaseDate: releaseDate ?? this.releaseDate,
      voteCount: voteCount ?? this.voteCount,
      video: video ?? this.video,
      adult: adult ?? this.adult,
      voteAverage: voteAverage ?? this.voteAverage,
      title: title ?? this.title,
      genreIds: genreIds ?? this.genreIds,
      originalLanguage: originalLanguage ?? this.originalLanguage,
      originalTitle: originalTitle ?? this.originalTitle,
      popularity: popularity ?? this.popularity,
      id: id ?? this.id,
      backdropPath: backdropPath ?? this.backdropPath,
      overview: overview ?? this.overview,
      posterPath: posterPath ?? this.posterPath,
    );