paginate method

Future<Page<R>> paginate(
  1. Session session, {
  2. List<Object>? columns(
    1. C columns
    )?,
  3. Expr<bool>? where(
    1. C columns
    )?,
  4. int pageSize = 100,
  5. K? startAfter,
})

Implementation

Future<page.Page<R>> paginate(
  Session session, {
  List<Object>? Function(C columns)? columns,
  Expr<bool>? Function(C columns)? where,
  int pageSize = 100,
  K? startAfter,
}) async {
  final page = _Page2<C, K, R>._(
      [], false, session, this, columns, where, pageSize, startAfter);
  return await page.next();
}