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