buildLines method
Builds a complete table as a list of lines.
Includes: header, connector, and all data rows. Does NOT include title frame - use with FramedLayout for full styling.
Implementation
List<String> buildLines(List<List<String>> rows) {
if (_widths.isEmpty) {
computeWidths(rows);
}
final lines = <String>[];
lines.add(headerLine());
lines.add(connectorLine());
for (var i = 0; i < rows.length; i++) {
lines.add(rowLine(rows[i], index: i));
}
return lines;
}