int numLines

Source

int get numLines {
  _refreshTextLineMetrics();
  return _textLineMetrics.length;
}