contentHeight method

double contentHeight(
  1. dynamic highlightIndex
)

Implementation

double contentHeight(highlightIndex) {
  double totalHeight = 0;
  for (var i = 0; i < metrics.length; i++) {
    totalHeight += getLineHeight(i == highlightIndex, i);
    if (i < metrics.length - 1) {
      totalHeight += style.lineGap;
    }
  }
  return totalHeight + style.contentPadding.vertical;
}