copyWith method
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,
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,
);