DataTableProps<T> constructor
const
DataTableProps<T> ({
- required List<
T> items, - required List<
DataColumnProps< columns,T> > - void onRowTap(
- T item
- bool selectable = false,
- Set<
T> selectedItems = const {}, - bool showDividers = true,
- bool showHeader = true,
- bool stickyHeader = false,
- String emptyMessage = 'No data available',
- void onToggleSelection(
- T item
- void onToggleSelectAll()?,
Implementation
const DataTableProps({
required this.items,
required this.columns,
this.onRowTap,
this.selectable = false,
this.selectedItems = const {},
this.showDividers = true,
this.showHeader = true,
this.stickyHeader = false,
this.emptyMessage = 'No data available',
this.onToggleSelection,
this.onToggleSelectAll,
});