lineCount property
Returns the number of lines in the rendered table.
Implementation
@override
int get lineCount {
var count = 0;
if (_borderTop) count++;
if (_borderBottom) count++;
if (_headers.isNotEmpty) count++; // Header row
if (_borderHeader && _headers.isNotEmpty) count++; // Header separator
final startRow = _offset.clamp(0, _rows.length);
var visibleRows = _rows.length - startRow;
if (_height != null) {
var usedLines = count;
final availableRows = _height! - usedLines;
if (availableRows > 0 && availableRows < visibleRows) {
visibleRows = availableRows;
}
}
count += visibleRows;
if (_borderRow && visibleRows > 1) {
count += visibleRows - 1; // Row separators
}
return count;
}