copyWith method

TheMoviePersonDetail copyWith({
  1. String? birthday,
  2. String? knownForDepartment,
  3. dynamic deathday,
  4. int? id,
  5. String? name,
  6. List<String>? alsoKnownAs,
  7. int? gender,
  8. String? biography,
  9. num? popularity,
  10. String? placeOfBirth,
  11. String? profilePath,
  12. bool? adult,
  13. String? imdbId,
  14. dynamic homepage,
})

Implementation

TheMoviePersonDetail copyWith({
  String? birthday,
  String? knownForDepartment,
  dynamic deathday,
  int? id,
  String? name,
  List<String>? alsoKnownAs,
  int? gender,
  String? biography,
  num? popularity,
  String? placeOfBirth,
  String? profilePath,
  bool? adult,
  String? imdbId,
  dynamic homepage,
}) =>
    TheMoviePersonDetail(
      birthday: birthday ?? this.birthday,
      knownForDepartment: knownForDepartment ?? this.knownForDepartment,
      deathday: deathday ?? this.deathday,
      id: id ?? this.id,
      name: name ?? this.name,
      alsoKnownAs: alsoKnownAs ?? this.alsoKnownAs,
      gender: gender ?? this.gender,
      biography: biography ?? this.biography,
      popularity: popularity ?? this.popularity,
      placeOfBirth: placeOfBirth ?? this.placeOfBirth,
      profilePath: profilePath ?? this.profilePath,
      adult: adult ?? this.adult,
      imdbId: imdbId ?? this.imdbId,
      homepage: homepage ?? this.homepage,
    );