copyWith method
UpdateChatAccentColors
copyWith({
- int? chatId,
- int? accentColorId,
- int? backgroundCustomEmojiId,
- int? profileAccentColorId,
- int? profileBackgroundCustomEmojiId,
- dynamic extra,
- 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,
);