copyWith method
PaginatedQueryState<TData, TParams, TError>
copyWith(
{ - List<TData>? data,
- TParams? parameters,
- int? currentPage,
- int? totalPages,
- int? totalItems,
- bool? hasNextPage,
- PaginatedQueryLoadingState? loadingState,
- TError? error,
})
Implementation
PaginatedQueryState<TData, TParams, TError> copyWith({
List<TData>? data,
TParams? parameters,
int? currentPage,
int? totalPages,
int? totalItems,
bool? hasNextPage,
PaginatedQueryLoadingState? loadingState,
TError? error,
}) {
return PaginatedQueryState<TData, TParams, TError>(
data: data ?? this.data,
parameters: parameters ?? this.parameters,
currentPage: currentPage ?? this.currentPage,
totalPages: totalPages ?? this.totalPages,
totalItems: totalItems ?? this.totalItems,
hasNextPage: hasNextPage ?? this.hasNextPage,
loadingState: loadingState ?? this.loadingState,
error: error ?? this.error,
);
}