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