copyWith method
ChatEventAccentColorChanged
copyWith({
- int? oldAccentColorId,
- int? oldBackgroundCustomEmojiId,
- int? newAccentColorId,
- int? newBackgroundCustomEmojiId,
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
ChatEventAccentColorChanged copyWith({
int? oldAccentColorId,
int? oldBackgroundCustomEmojiId,
int? newAccentColorId,
int? newBackgroundCustomEmojiId,
}) =>
ChatEventAccentColorChanged(
oldAccentColorId: oldAccentColorId ?? this.oldAccentColorId,
oldBackgroundCustomEmojiId:
oldBackgroundCustomEmojiId ?? this.oldBackgroundCustomEmojiId,
newAccentColorId: newAccentColorId ?? this.newAccentColorId,
newBackgroundCustomEmojiId:
newBackgroundCustomEmojiId ?? this.newBackgroundCustomEmojiId,
);