buildFooterRows method
Implementation
@override
List<DataRowY> buildFooterRows() {
List<DataRowY> footerRows = [];
List<List<DataCellY>> lsList = _dataColumnCells.mapList((e) => e.buildFooterCell());
int? rowCount = lsList.map((e) => e.length).maxValue();
if (rowCount == null || rowCount == 0) return [];
for (int row = 0; row < rowCount; ++row) {
List<DataCellY> cells = [];
for (int c = 0; c < _dataColumnCells.length; c++) {
DataCellY? cell = lsList[c].getOr(row);
if (cell != null) {
cells.add(cell);
} else {
cells.add(DataCellY.empty);
}
}
DataRowY tr = DataRowY(cells: cells);
footerRows.add(tr);
}
return footerRows;
}