stateOfOffset method
Gets the state index for a given offset.
offset: The offset value to evaluate.- Returns: The index of the state corresponding to the offset.
Implementation
int stateOfOffset(double offset) =>
stateToIndex(snappingPixelOffsets.indexOf(getFirstOffsetAfter(offset)));