copyWith method

TheMovieCast copyWith({
  1. bool? adult,
  2. int? gender,
  3. int? id,
  4. String? knownForDepartment,
  5. String? name,
  6. String? originalName,
  7. num? popularity,
  8. String? profilePath,
  9. int? castId,
  10. String? character,
  11. String? creditId,
  12. int? order,
})

Implementation

TheMovieCast copyWith({
  bool? adult,
  int? gender,
  int? id,
  String? knownForDepartment,
  String? name,
  String? originalName,
  num? popularity,
  String? profilePath,
  int? castId,
  String? character,
  String? creditId,
  int? order,
}) =>
    TheMovieCast(
      adult: adult ?? this.adult,
      gender: gender ?? this.gender,
      id: id ?? this.id,
      knownForDepartment: knownForDepartment ?? this.knownForDepartment,
      name: name ?? this.name,
      originalName: originalName ?? this.originalName,
      popularity: popularity ?? this.popularity,
      profilePath: profilePath ?? this.profilePath,
      castId: castId ?? this.castId,
      character: character ?? this.character,
      creditId: creditId ?? this.creditId,
      order: order ?? this.order,
    );