copyWith method

PaginationLoaded copyWith({
  1. bool? hasReachedEnd,
  2. List<DocumentSnapshot<Object?>>? documentSnapshots,
})

Implementation

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