copyWith method

ChatBoostFeatures copyWith({
  1. List<ChatBoostLevelFeatures>? features,
  2. int? minProfileBackgroundCustomEmojiBoostLevel,
  3. int? minBackgroundCustomEmojiBoostLevel,
  4. int? minEmojiStatusBoostLevel,
  5. int? minChatThemeBackgroundBoostLevel,
  6. int? minCustomBackgroundBoostLevel,
  7. int? minCustomEmojiStickerSetBoostLevel,
  8. int? minAutomaticTranslationBoostLevel,
  9. int? minSpeechRecognitionBoostLevel,
  10. int? minSponsoredMessageDisableBoostLevel,
})

Implementation

ChatBoostFeatures copyWith({
  List<ChatBoostLevelFeatures>? features,
  int? minProfileBackgroundCustomEmojiBoostLevel,
  int? minBackgroundCustomEmojiBoostLevel,
  int? minEmojiStatusBoostLevel,
  int? minChatThemeBackgroundBoostLevel,
  int? minCustomBackgroundBoostLevel,
  int? minCustomEmojiStickerSetBoostLevel,
  int? minAutomaticTranslationBoostLevel,
  int? minSpeechRecognitionBoostLevel,
  int? minSponsoredMessageDisableBoostLevel,
}) =>
    ChatBoostFeatures(
      features: features ?? this.features,
      minProfileBackgroundCustomEmojiBoostLevel:
          minProfileBackgroundCustomEmojiBoostLevel ??
              this.minProfileBackgroundCustomEmojiBoostLevel,
      minBackgroundCustomEmojiBoostLevel:
          minBackgroundCustomEmojiBoostLevel ??
              this.minBackgroundCustomEmojiBoostLevel,
      minEmojiStatusBoostLevel:
          minEmojiStatusBoostLevel ?? this.minEmojiStatusBoostLevel,
      minChatThemeBackgroundBoostLevel: minChatThemeBackgroundBoostLevel ??
          this.minChatThemeBackgroundBoostLevel,
      minCustomBackgroundBoostLevel:
          minCustomBackgroundBoostLevel ?? this.minCustomBackgroundBoostLevel,
      minCustomEmojiStickerSetBoostLevel:
          minCustomEmojiStickerSetBoostLevel ??
              this.minCustomEmojiStickerSetBoostLevel,
      minAutomaticTranslationBoostLevel: minAutomaticTranslationBoostLevel ??
          this.minAutomaticTranslationBoostLevel,
      minSpeechRecognitionBoostLevel: minSpeechRecognitionBoostLevel ??
          this.minSpeechRecognitionBoostLevel,
      minSponsoredMessageDisableBoostLevel:
          minSponsoredMessageDisableBoostLevel ??
              this.minSponsoredMessageDisableBoostLevel,
    );