skipAndTop method

CollectionQuery<T> skipAndTop({
  1. required int skip,
  2. required int top,
})

Implementation

CollectionQuery<T> skipAndTop({required int skip, required int top}) {
  if (skip.isNegative || top.isNegative) {
    throw Exception("Either \$skip and \$top cannot accept negative value");
  }

  _skip = skip;
  _top = top;

  return this;
}