copyWith method

DeleteChatHistory copyWith({
  1. int? chatId,
  2. bool? removeFromChatList,
  3. bool? revoke,
})

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,
);