copyWith method

PaginationTool<T> copyWith({
  1. int? page,
  2. int? contentLimit,
  3. int? totalPages,
  4. int? totalContent,
  5. int? currentPage,
  6. int? currentContent,
  7. bool? hasNextOverride,
  8. bool? hasPreviousOverride,
  9. bool? cursorBased,
  10. String? cursor,
  11. String? nextCursor,
  12. List<T>? listData,
})

Implementation

PaginationTool<T> copyWith({
  int? page,
  int? contentLimit,
  int? totalPages,
  int? totalContent,
  int? currentPage,
  int? currentContent,
  bool? hasNextOverride,
  bool? hasPreviousOverride,
  bool? cursorBased,
  String? cursor,
  String? nextCursor,
  List<T>? listData,
}) => PaginationTool<T>(
  page: page ?? this.page,
  contentLimit: contentLimit ?? this.contentLimit,
  totalPages: totalPages ?? this.totalPages,
  totalContent: totalContent ?? this.totalContent,
  currentPage: currentPage ?? this.currentPage,
  currentContent: currentContent ?? this.currentContent,
  hasNextOverride: hasNextOverride ?? this.hasNextOverride,
  hasPreviousOverride: hasPreviousOverride ?? this.hasPreviousOverride,
  cursorBased: cursorBased ?? this.cursorBased,
  cursor: cursor ?? this.cursor,
  nextCursor: nextCursor ?? this.nextCursor,
  listData: listData ?? this.listData,
);