copyWith method

PkPaginationState<T> copyWith({
  1. List<T>? items,
  2. bool? isLoading,
  3. bool? isLoadingMore,
  4. bool? hasMore,
  5. Object? error,
  6. int? page,
})

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