limit method

QueryRequest<M> limit(
  1. int count
)

Adds a limit to the number of returned entity states.

A limit can only be used along with orderBy(..).

Implementation

QueryRequest<M> limit(int count) {
    if (count <= 0) {
        throw ArgumentError('Invalid value of limit = $count');
    }
    _limit = count;
    return this;
}