copyWith method

ChatBoostLevelFeatures copyWith({
  1. int? level,
  2. int? storyPerDayCount,
  3. int? customEmojiReactionCount,
  4. int? titleColorCount,
  5. int? profileAccentColorCount,
  6. bool? canSetProfileBackgroundCustomEmoji,
  7. int? accentColorCount,
  8. bool? canSetBackgroundCustomEmoji,
  9. bool? canSetEmojiStatus,
  10. int? chatThemeBackgroundCount,
  11. bool? canSetCustomBackground,
  12. bool? canSetCustomEmojiStickerSet,
  13. bool? canRecognizeSpeech,
  14. dynamic extra,
  15. 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

ChatBoostLevelFeatures copyWith({
  int? level,
  int? storyPerDayCount,
  int? customEmojiReactionCount,
  int? titleColorCount,
  int? profileAccentColorCount,
  bool? canSetProfileBackgroundCustomEmoji,
  int? accentColorCount,
  bool? canSetBackgroundCustomEmoji,
  bool? canSetEmojiStatus,
  int? chatThemeBackgroundCount,
  bool? canSetCustomBackground,
  bool? canSetCustomEmojiStickerSet,
  bool? canRecognizeSpeech,
  dynamic extra,
  int? clientId,
}) =>
    ChatBoostLevelFeatures(
      level: level ?? this.level,
      storyPerDayCount: storyPerDayCount ?? this.storyPerDayCount,
      customEmojiReactionCount:
          customEmojiReactionCount ?? this.customEmojiReactionCount,
      titleColorCount: titleColorCount ?? this.titleColorCount,
      profileAccentColorCount:
          profileAccentColorCount ?? this.profileAccentColorCount,
      canSetProfileBackgroundCustomEmoji:
          canSetProfileBackgroundCustomEmoji ??
              this.canSetProfileBackgroundCustomEmoji,
      accentColorCount: accentColorCount ?? this.accentColorCount,
      canSetBackgroundCustomEmoji:
          canSetBackgroundCustomEmoji ?? this.canSetBackgroundCustomEmoji,
      canSetEmojiStatus: canSetEmojiStatus ?? this.canSetEmojiStatus,
      chatThemeBackgroundCount:
          chatThemeBackgroundCount ?? this.chatThemeBackgroundCount,
      canSetCustomBackground:
          canSetCustomBackground ?? this.canSetCustomBackground,
      canSetCustomEmojiStickerSet:
          canSetCustomEmojiStickerSet ?? this.canSetCustomEmojiStickerSet,
      canRecognizeSpeech: canRecognizeSpeech ?? this.canRecognizeSpeech,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );