copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
UpdateChatHasWelcomeMessages copyWith({
int? chatId,
bool? hasWelcomeMessages,
dynamic extra,
int? clientId,
}) => UpdateChatHasWelcomeMessages(
chatId: chatId ?? this.chatId,
hasWelcomeMessages: hasWelcomeMessages ?? this.hasWelcomeMessages,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);