LazyDataTable constructor
LazyDataTable({
- Key? key,
- required int columns,
- required int rows,
- LazyDataTableDimensions tableDimensions = const LazyDataTableDimensions(),
- LazyDataTableTheme tableTheme = const LazyDataTableTheme(),
- Widget columnHeaderBuilder(
- int columnIndex
- Widget rowHeaderBuilder(
- int rowIndex
- required Widget dataCellBuilder(),
- Widget? cornerWidget,
Implementation
LazyDataTable({
Key? key,
// Number of data columns.
required this.columns,
// Number of data rows.
required this.rows,
// Dimensions of the table elements.
this.tableDimensions = const LazyDataTableDimensions(),
// Theme of the table elements.
this.tableTheme = const LazyDataTableTheme(),
// Builder function for the column header.
this.columnHeaderBuilder,
// Builder function for the row header.
this.rowHeaderBuilder,
// Builder function for the data cell.
required this.dataCellBuilder,
// Corner widget.
this.cornerWidget,
}) : super(key: key) {
if (rowHeaderBuilder == null || columnHeaderBuilder == null) {
assert(cornerWidget == null,
"The corner widget is only allowed when you have both a column header and a row header.");
}
}