copyWith method

SetChatAvailableReactions copyWith({
  1. int? chatId,
  2. ChatAvailableReactions? availableReactions,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

SetChatAvailableReactions copyWith({
  int? chatId,
  ChatAvailableReactions? availableReactions,
}) => SetChatAvailableReactions(
  chatId: chatId ?? this.chatId,
  availableReactions: availableReactions ?? this.availableReactions,
);