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
DeleteChatHistory copyWith({
int? chatId,
bool? removeFromChatList,
bool? revoke,
}) =>
DeleteChatHistory(
chatId: chatId ?? this.chatId,
removeFromChatList: removeFromChatList ?? this.removeFromChatList,
revoke: revoke ?? this.revoke,
);