copyWith method

GetChatHistory copyWith({
  1. int? chatId,
  2. int? fromMessageId,
  3. int? offset,
  4. int? limit,
  5. bool? onlyLocal,
})

Implementation

GetChatHistory copyWith({
  int? chatId,
  int? fromMessageId,
  int? offset,
  int? limit,
  bool? onlyLocal,
}) => GetChatHistory(
  chatId: chatId ?? this.chatId,
  fromMessageId: fromMessageId ?? this.fromMessageId,
  offset: offset ?? this.offset,
  limit: limit ?? this.limit,
  onlyLocal: onlyLocal ?? this.onlyLocal,
);