copyWith method

BotProfile copyWith({
  1. String? id,
  2. String? name,
  3. String? photo,
  4. int? age,
  5. String? gender,
  6. String? country,
  7. String? continent,
  8. String? speakingStyle,
  9. List<String>? languages,
  10. List<String>? interests,
  11. List<String>? personalityTraits,
  12. List<String>? favoriteTopics,
  13. ProfileExtra? extra,
})

Implementation

BotProfile copyWith({
  String? id,
  String? name,
  String? photo,
  int? age,
  String? gender,
  String? country,
  String? continent,
  String? speakingStyle,
  List<String>? languages,
  List<String>? interests,
  List<String>? personalityTraits,
  List<String>? favoriteTopics,
  ProfileExtra? extra,
}) => BotProfile(
  id: id ?? this.id,
  name: name ?? this.name,
  photo: photo ?? this.photo,
  age: age ?? this.age,
  gender: gender ?? this.gender,
  country: country ?? this.country,
  continent: continent ?? this.continent,
  speakingStyle: speakingStyle ?? this.speakingStyle,
  languages: languages ?? this.languages,
  interests: interests ?? this.interests,
  personalityTraits: personalityTraits ?? this.personalityTraits,
  favoriteTopics: favoriteTopics ?? this.favoriteTopics,
  extra: extra ?? this.extra,
);