copyWith method

  1. @override
UpdateChatAccentColors copyWith({
  1. int? chatId,
  2. int? accentColorId,
  3. int? backgroundCustomEmojiId,
  4. int? profileAccentColorId,
  5. int? profileBackgroundCustomEmojiId,
  6. dynamic extra,
  7. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateChatAccentColors copyWith({
  int? chatId,
  int? accentColorId,
  int? backgroundCustomEmojiId,
  int? profileAccentColorId,
  int? profileBackgroundCustomEmojiId,
  dynamic extra,
  int? clientId,
}) =>
    UpdateChatAccentColors(
      chatId: chatId ?? this.chatId,
      accentColorId: accentColorId ?? this.accentColorId,
      backgroundCustomEmojiId:
          backgroundCustomEmojiId ?? this.backgroundCustomEmojiId,
      profileAccentColorId: profileAccentColorId ?? this.profileAccentColorId,
      profileBackgroundCustomEmojiId: profileBackgroundCustomEmojiId ??
          this.profileBackgroundCustomEmojiId,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );