copyWith method

TheMoviePerson copyWith({
  1. String? profilePath,
  2. bool? adult,
  3. int? id,
  4. List<TheMoviePersonKnownFor>? knownFor,
  5. String? name,
  6. num? popularity,
})

Implementation

TheMoviePerson copyWith({
  String? profilePath,
  bool? adult,
  int? id,
  List<TheMoviePersonKnownFor>? knownFor,
  String? name,
  num? popularity,
}) =>
    TheMoviePerson(
      profilePath: profilePath ?? this.profilePath,
      adult: adult ?? this.adult,
      id: id ?? this.id,
      knownFor: knownFor ?? this.knownFor,
      name: name ?? this.name,
      popularity: popularity ?? this.popularity,
    );