excelRows static method
List<List>
excelRows(
- List<
PlexDataTableHeaderCell> headers, - List<
List< rowsPlexDataTableValueCell> >
Implementation
static List<List<dynamic>> excelRows(
List<PlexDataTableHeaderCell> headers,
List<List<PlexDataTableValueCell>> rows,
) {
return rows.map((List<PlexDataTableValueCell> row) {
return headers.map((PlexDataTableHeaderCell header) {
final PlexDataTableValueCell? cell = cellFor(row, header.columnName);
if (cell == null) return '';
if (cell.isWidget) return cell.cellValue ?? '';
return cell.value;
}).toList();
}).toList();
}