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