anchorAdjustmentOffsetY method

double anchorAdjustmentOffsetY(
  1. int index,
  2. int activeIndex
)

Implementation

double anchorAdjustmentOffsetY(int index, int activeIndex) {
  final isHighlight = index == activeIndex;
  final lineHeight = getLineHeight(isHighlight, index);
  var anchorOffset =
      anchorOffsetY(index, isHighlight, lineHeight, style.selectionAlignment);
  return (lineHeight / 2 - anchorOffset);
}