copyWith method

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

Implementation

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