QueryCollectionItems<C extends GpsPointsView<GpsPoint>> constructor

QueryCollectionItems<C extends GpsPointsView<GpsPoint>>({
  1. int startIndex = 0,
  2. int? nrItems,
})

Constructor for the query, with arguments indicating how much of the collection should be returned.

startIndex indicates, if provided, the first item that should be copied by the query. If not provided, it defaults to 0.

nrItems indicates, if provided, how many items should be copied by the query. If not provided (or null), the copying will copy till the end of the collection (equivalent to providing (length-startIndex)).

Implementation

QueryCollectionItems({int startIndex = 0, int? nrItems})
    : _startIndex = startIndex,
      _nrItems = nrItems;