anchoredState<T> method
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);