copyWith method

  1. @override
ChatEventAvailableReactionsChanged copyWith({
  1. ChatAvailableReactions? oldAvailableReactions,
  2. ChatAvailableReactions? newAvailableReactions,
})
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
ChatEventAvailableReactionsChanged copyWith({
  ChatAvailableReactions? oldAvailableReactions,
  ChatAvailableReactions? newAvailableReactions,
}) =>
    ChatEventAvailableReactionsChanged(
      oldAvailableReactions:
          oldAvailableReactions ?? this.oldAvailableReactions,
      newAvailableReactions:
          newAvailableReactions ?? this.newAvailableReactions,
    );