DataTable constructor
const
DataTable({
- Key? key,
- required List<
String> columns, - required List<
List> rows, - double horizontalPadding = AppSpacing.md,
- bool showCheckboxes = false,
- ValueChanged<
int> ? onRowSelected, - Set<
int> selectedIndices = const <int>{}, - Color? headerBackground,
- double rowHeight = 48,
- bool alternating = true,
- bool showVerticalDividers = true,
- int? sortColumnIndex,
- bool sortAscending = true,
- void onSort()?,
Implementation
const DataTable({
super.key,
required this.columns,
required this.rows,
this.horizontalPadding = AppSpacing.md,
this.showCheckboxes = false,
this.onRowSelected,
this.selectedIndices = const <int>{},
this.headerBackground,
this.rowHeight = 48,
this.alternating = true,
this.showVerticalDividers = true,
this.sortColumnIndex,
this.sortAscending = true,
this.onSort,
});