copyWith method

  1. @override
ChatEventProfileAccentColorChanged copyWith({
  1. int? oldProfileAccentColorId,
  2. int? oldProfileBackgroundCustomEmojiId,
  3. int? newProfileAccentColorId,
  4. 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,
    );