anchoredState<T> method

int anchoredState<T>(
  1. MultiStateSheetExtent<T> extent
)

Determines the anchored state for the current extent offset.

  • extent: The current extent of the sheet.
  • Returns: The index of the anchored state.

Implementation

int anchoredState<T>(MultiStateSheetExtent<T> extent) =>
    getStateFromOffset(getFirstOffsetAfter(extent.offset), extent);