EnhancedDataTable<T> constructor
const
EnhancedDataTable<T> ({
- Key? key,
- required List<
DataColumn> columns, - required List<
DataRow> rows, - int? sortColumnIndex,
- bool sortAscending = true,
- void onSort()?,
- bool selectable = false,
- void onSelectionChanged()?,
- Set<
int> selectedRows = const <int>{}, - void onRowTap(
- int index
- void onRowDoubleTap(
- int index
- void onRowLongPress(
- int index
- TablePagination? pagination,
- void onPageChanged(
- int index
- bool exportEnabled = false,
- void onExport(
- TableExportFormat format
- Widget? emptyStateWidget,
- bool loading = false,
- Widget? header,
- List<
Widget> ? actions, - CrossAxisAlignment checkboxVerticalAlignment = CrossAxisAlignment.center,
- double? dataRowHeight,
- double headingRowHeight = 56,
- double dividerThickness = 1,
- bool showCheckboxColumn = true,
- TableBorder? border,
- Clip clipBehavior = Clip.none,
- bool shrinkWrap = false,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
Implementation
const EnhancedDataTable({
super.key,
required this.columns,
required this.rows,
this.sortColumnIndex,
this.sortAscending = true,
this.onSort,
this.selectable = false,
this.onSelectionChanged,
this.selectedRows = const <int>{},
this.onRowTap,
this.onRowDoubleTap,
this.onRowLongPress,
this.pagination,
this.onPageChanged,
this.exportEnabled = false,
this.onExport,
this.emptyStateWidget,
this.loading = false,
this.header,
this.actions,
this.checkboxVerticalAlignment = CrossAxisAlignment.center,
this.dataRowHeight,
this.headingRowHeight = 56,
this.dividerThickness = 1,
this.showCheckboxColumn = true,
this.border,
this.clipBehavior = Clip.none,
this.shrinkWrap = false,
this.scrollPhysics,
this.scrollController,
});