copyWith method

  1. @override
ChatEventAccentColorChanged copyWith({
  1. int? oldAccentColorId,
  2. int? oldBackgroundCustomEmojiId,
  3. int? newAccentColorId,
  4. 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,
);