NativeDataTable constructor

const NativeDataTable({
  1. required List<DataColumn> columns,
  2. required List<DataRow> rows,
  3. int rowsPerPage = PaginatedDataTable.defaultRowsPerPage,
  4. Widget? header,
  5. bool showSelect = true,
  6. bool showSort = true,
  7. ValueChanged<int?>? onRowsPerPageChanged,
  8. int? totalItems,
  9. ValueChanged<bool?>? onSelectAll,
  10. bool? sortAscending,
  11. int? sortColumnIndex,
  12. IndexedWidgetBuilder? mobileItemBuilder,
  13. Size tabletBreakpoint = _kTabletBreakpoint,
  14. List<Widget>? actions,
  15. int firstRowIndex = 0,
  16. List<Widget>? selectedActions,
  17. RefreshCallback? onRefresh,
  18. int mobileFetchNextRows = 100,
  19. VoidCallback? handlePrevious,
  20. VoidCallback? handleNext,
  21. bool rowCountApproximate = false,
  22. Widget? noItems,
  23. Widget? mobileIsLoading,
  24. List<Widget>? mobileSlivers,
  25. bool alwaysShowDataTable = false,
})

Implementation

const NativeDataTable({
  required this.columns,
  required this.rows,
  this.rowsPerPage = PaginatedDataTable.defaultRowsPerPage,
  this.header,
  this.showSelect = true,
  this.showSort = true,
  this.onRowsPerPageChanged,
  this.totalItems,
  this.onSelectAll,
  this.sortAscending,
  this.sortColumnIndex,
  this.mobileItemBuilder,
  this.tabletBreakpoint = _kTabletBreakpoint,
  this.actions,
  this.firstRowIndex = 0,
  this.selectedActions,
  this.onRefresh,
  this.mobileFetchNextRows = 100,
  this.handlePrevious,
  this.handleNext,
  this.rowCountApproximate = false,
  this.noItems,
  this.mobileIsLoading,
  this.mobileSlivers,
  this.alwaysShowDataTable = false,
});