tableCellText function
Extracts plain text from a table cell widget for copy/export.
Returns Text.data for Text cells and an empty string for other widgets (including padding placeholders).
Implementation
String tableCellText(Widget cell) {
if (cell is Text) return cell.data;
return '';
}