CollectionWindowState<Item extends TransferObjectBase<Id> , Id> constructor
CollectionWindowState<Item extends TransferObjectBase<Id> , Id> (
- int length,
- int windowOffset,
- List<
OrderedData< windowItem> >
Implementation
CollectionWindowState(
this.length,
this.windowOffset,
this.window,
) : lowerBound = window.isNotEmpty ? window.min((x) => x.order).order : 0,
upperBound = window.isNotEmpty ? window.max((x) => x.order).order : 0;