NativeDataTable constructor
const
NativeDataTable({
- required List<
DataColumn> columns, - required List<
DataRow> rows, - int rowsPerPage = PaginatedDataTable.defaultRowsPerPage,
- Widget? header,
- bool showSelect = true,
- bool showSort = true,
- ValueChanged<
int?> ? onRowsPerPageChanged, - int? totalItems,
- ValueChanged<
bool?> ? onSelectAll, - bool? sortAscending,
- int? sortColumnIndex,
- IndexedWidgetBuilder? mobileItemBuilder,
- Size tabletBreakpoint = _kTabletBreakpoint,
- List<
Widget> ? actions, - int firstRowIndex = 0,
- List<
Widget> ? selectedActions, - RefreshCallback? onRefresh,
- int mobileFetchNextRows = 100,
- VoidCallback? handlePrevious,
- VoidCallback? handleNext,
- bool rowCountApproximate = false,
- Widget? noItems,
- Widget? mobileIsLoading,
- List<
Widget> ? mobileSlivers, - 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,
});