copyWith method
Implementation
PkPaginationState<T> copyWith({
List<T>? items,
bool? isLoading,
bool? isLoadingMore,
bool? hasMore,
Object? error,
int? page,
}) => PkPaginationState<T>(
items: items ?? this.items,
isLoading: isLoading ?? this.isLoading,
isLoadingMore: isLoadingMore ?? this.isLoadingMore,
hasMore: hasMore ?? this.hasMore,
error: error ?? this.error,
page: page ?? this.page,
);