copyWith method

GetChatEventLog copyWith({
  1. int? chatId,
  2. String? query,
  3. int? fromEventId,
  4. int? limit,
  5. ChatEventLogFilters? filters()?,
  6. List<int>? userIds,
})

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

Implementation

GetChatEventLog copyWith({
  int? chatId,
  String? query,
  int? fromEventId,
  int? limit,
  ChatEventLogFilters? Function()? filters,
  List<int>? userIds,
}) => GetChatEventLog(
  chatId: chatId ?? this.chatId,
  query: query ?? this.query,
  fromEventId: fromEventId ?? this.fromEventId,
  limit: limit ?? this.limit,
  filters: filters != null ? filters() : this.filters,
  userIds: userIds ?? this.userIds,
);