copyWith method
ChatEventProfileAccentColorChanged
copyWith({
- int? oldProfileAccentColorId,
- int? oldProfileBackgroundCustomEmojiId,
- int? newProfileAccentColorId,
- int? newProfileBackgroundCustomEmojiId,
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
ChatEventProfileAccentColorChanged copyWith({
int? oldProfileAccentColorId,
int? oldProfileBackgroundCustomEmojiId,
int? newProfileAccentColorId,
int? newProfileBackgroundCustomEmojiId,
}) =>
ChatEventProfileAccentColorChanged(
oldProfileAccentColorId:
oldProfileAccentColorId ?? this.oldProfileAccentColorId,
oldProfileBackgroundCustomEmojiId: oldProfileBackgroundCustomEmojiId ??
this.oldProfileBackgroundCustomEmojiId,
newProfileAccentColorId:
newProfileAccentColorId ?? this.newProfileAccentColorId,
newProfileBackgroundCustomEmojiId: newProfileBackgroundCustomEmojiId ??
this.newProfileBackgroundCustomEmojiId,
);