copyWith method

ChatBoostLevelFeatures copyWith({
  1. int? level,
  2. int? storyPerDayCount,
  3. int? customEmojiReactionCount,
  4. int? titleColorCount,
  5. int? profileAccentColorCount,
  6. bool? canSetProfileBackgroundCustomEmoji,
  7. int? accentColorCount,
  8. bool? canSetBackgroundCustomEmoji,
  9. bool? canSetEmojiStatus,
  10. int? chatThemeBackgroundCount,
  11. bool? canSetCustomBackground,
  12. bool? canSetCustomEmojiStickerSet,
  13. bool? canEnableAutomaticTranslation,
  14. bool? canRecognizeSpeech,
  15. bool? canDisableSponsoredMessages,
})

Implementation

ChatBoostLevelFeatures copyWith({
  int? level,
  int? storyPerDayCount,
  int? customEmojiReactionCount,
  int? titleColorCount,
  int? profileAccentColorCount,
  bool? canSetProfileBackgroundCustomEmoji,
  int? accentColorCount,
  bool? canSetBackgroundCustomEmoji,
  bool? canSetEmojiStatus,
  int? chatThemeBackgroundCount,
  bool? canSetCustomBackground,
  bool? canSetCustomEmojiStickerSet,
  bool? canEnableAutomaticTranslation,
  bool? canRecognizeSpeech,
  bool? canDisableSponsoredMessages,
}) =>
    ChatBoostLevelFeatures(
      level: level ?? this.level,
      storyPerDayCount: storyPerDayCount ?? this.storyPerDayCount,
      customEmojiReactionCount:
          customEmojiReactionCount ?? this.customEmojiReactionCount,
      titleColorCount: titleColorCount ?? this.titleColorCount,
      profileAccentColorCount:
          profileAccentColorCount ?? this.profileAccentColorCount,
      canSetProfileBackgroundCustomEmoji:
          canSetProfileBackgroundCustomEmoji ??
              this.canSetProfileBackgroundCustomEmoji,
      accentColorCount: accentColorCount ?? this.accentColorCount,
      canSetBackgroundCustomEmoji:
          canSetBackgroundCustomEmoji ?? this.canSetBackgroundCustomEmoji,
      canSetEmojiStatus: canSetEmojiStatus ?? this.canSetEmojiStatus,
      chatThemeBackgroundCount:
          chatThemeBackgroundCount ?? this.chatThemeBackgroundCount,
      canSetCustomBackground:
          canSetCustomBackground ?? this.canSetCustomBackground,
      canSetCustomEmojiStickerSet:
          canSetCustomEmojiStickerSet ?? this.canSetCustomEmojiStickerSet,
      canEnableAutomaticTranslation:
          canEnableAutomaticTranslation ?? this.canEnableAutomaticTranslation,
      canRecognizeSpeech: canRecognizeSpeech ?? this.canRecognizeSpeech,
      canDisableSponsoredMessages:
          canDisableSponsoredMessages ?? this.canDisableSponsoredMessages,
    );