copyWith method

UpdateChatAccentColors copyWith({
  1. int? chatId,
  2. int? accentColorId,
  3. int? backgroundCustomEmojiId,
  4. UpgradedGiftColors? upgradedGiftColors,
  5. int? profileAccentColorId,
  6. int? profileBackgroundCustomEmojiId,
})

Implementation

UpdateChatAccentColors copyWith({
  int? chatId,
  int? accentColorId,
  int? backgroundCustomEmojiId,
  UpgradedGiftColors? upgradedGiftColors,
  int? profileAccentColorId,
  int? profileBackgroundCustomEmojiId,
}) =>
    UpdateChatAccentColors(
      chatId: chatId ?? this.chatId,
      accentColorId: accentColorId ?? this.accentColorId,
      backgroundCustomEmojiId:
          backgroundCustomEmojiId ?? this.backgroundCustomEmojiId,
      upgradedGiftColors: upgradedGiftColors ?? this.upgradedGiftColors,
      profileAccentColorId: profileAccentColorId ?? this.profileAccentColorId,
      profileBackgroundCustomEmojiId: profileBackgroundCustomEmojiId ??
          this.profileBackgroundCustomEmojiId,
    );