copyWith method

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

Implementation

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