CollectionWindowState<Item extends TransferObjectBase<Id>, Id> constructor

CollectionWindowState<Item extends TransferObjectBase<Id>, Id>(
  1. int length,
  2. int windowOffset,
  3. List<OrderedData<Item>> window
)

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;