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? minSpeechRecognitionBoostLevel,
  9. dynamic extra,
  10. 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,
    );