copyWith method

DAQInfiniteQueryResponse<T> copyWith({
  1. List<T>? items,
  2. int? currentPage,
  3. int? totalPages,
  4. int? totalItems,
  5. bool? hasNextPage,
})

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