copyWith method
Implementation
DAQInfiniteQueryResponse<T> copyWith({
List<T>? items,
int? currentPage,
int? totalPages,
int? totalItems,
bool? hasNextPage,
}) {
return DAQInfiniteQueryResponse<T>(
items: items ?? this.items,
currentPage: currentPage ?? this.currentPage,
totalPages: totalPages ?? this.totalPages,
totalItems: totalItems ?? this.totalItems,
hasNextPage: hasNextPage ?? this.hasNextPage,
);
}