TDataTable constructor

const TDataTable({
  1. Key? key,
  2. required List<DataColumn> columns,
  3. required List<DataRow> rows,
  4. double? tableHeight,
  5. int? sortColumnIndex,
  6. double dataRowHeight = 64,
  7. bool sortAscending = true,
  8. bool isLoading = false,
  9. double? minWidth = 1000,
  10. Widget? header,
  11. VoidCallback? loadMoreButtonOnPressed,
  12. bool allItemsFetched = false,
  13. bool hideFooter = false,
  14. bool hideLoadMore = false,
  15. List<Widget> actions = const [],
  16. Widget? emptyWidget,
})

Implementation

const TDataTable({
  super.key,
  required this.columns,
  required this.rows,
  this.tableHeight,
  this.sortColumnIndex,
  this.dataRowHeight = 64,
  this.sortAscending = true,
  this.isLoading = false,
  this.minWidth = 1000,
  this.header,
  this.loadMoreButtonOnPressed,
  this.allItemsFetched = false,
  this.hideFooter = false,
  this.hideLoadMore = false,
  this.actions = const [],
  this.emptyWidget,
});