VLVRequestControl.offsetControl constructor

VLVRequestControl.offsetControl(
  1. int offset,
  2. int contentCount,
  3. int beforeCount,
  4. int afterCount,
  5. String? contextId, {
  6. dynamic critical = false,
})

Creates a new virtual list view request control that will identify the target entry by a positional offset within the complete result set.

offset The positional offset of the target entry in the result set, where 1 is the first entry. contentCount The content count returned by the server in the last virtual list view response, or 0 if this is the first virtual list view request. beforeCount in the search results. afterCount The number of entries after the target entry to be included in the search results. contextId The context ID provided by the server in the last virtual list view response for the same set of criteria, or {@code null} if there was no previous virtual list view response or the server did not include a context ID in the last response.

Implementation

VLVRequestControl.offsetControl(this.offset, this.contentCount,
    this.beforeCount, this.afterCount, this.contextId,
    {critical = false}) {
  // todo: Sanity checking!!!
  isCritical = critical;
  assertionValue = null;
}