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,
  11. dynamic extra,
  12. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

ChatBoostFeatures copyWith({
  List<ChatBoostLevelFeatures>? features,
  int? minProfileBackgroundCustomEmojiBoostLevel,
  int? minBackgroundCustomEmojiBoostLevel,
  int? minEmojiStatusBoostLevel,
  int? minChatThemeBackgroundBoostLevel,
  int? minCustomBackgroundBoostLevel,
  int? minCustomEmojiStickerSetBoostLevel,
  int? minAutomaticTranslationBoostLevel,
  int? minSpeechRecognitionBoostLevel,
  int? minSponsoredMessageDisableBoostLevel,
  dynamic extra,
  int? clientId,
}) => 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,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);