copyWith method

PaginationLoaded<T> copyWith({
  1. List<T>? items,
  2. bool? hasReachedEnd,
})

Implementation

PaginationLoaded<T> copyWith({
  List<T>? items,
  bool? hasReachedEnd,
}) {
  return PaginationLoaded<T>(
    items: items ?? this.items,
    hasReachedEnd: hasReachedEnd ?? this.hasReachedEnd,
  );
}