nextCollectionGroupPage<T extends Object<T>> method

Future<void> nextCollectionGroupPage<T extends Object<T>>({
  1. required Query<Object?> reference,
  2. Query<Object?> query(
    1. Query<Object?>
    )?,
  3. required dynamic noMore(),
})

Implementation

Future<void> nextCollectionGroupPage<T extends object.Object<T>>({
  required Query reference,
  Query<Object?> Function(Query)? query,
  required Function() noMore,
}) async {
  final q =
      query == null ? reference : query(reference).removeLibFields(reference);
  return _nextCollectionPage<T>(
    fireQuery: FirestoreQuery(
      '${reference.parameters.values.map((e) => e.toString()).toList().join('_')}_${q.parameters.values.map((e) => e.toString()).toList().join('_')}',
      q,
      true,
    ),
    noMore: noMore,
  );
}