query method
Function that executes the actual query and returns the result.
Implementation
@override
CollectionItems<C> query(C collection) {
final end = _nrItems == null ? collection.length : _startIndex + _nrItems!;
return CollectionItems<C>(
_startIndex, collection.sublist(_startIndex, end) as C);
}