PrismDataTable<T> constructor
const
PrismDataTable<T> ({
- Key? key,
- required List<
T> rows, - required List<
PrismColumn< columns,T> > - void onRowTap(
- T row,
- int index
- String emptyMessage = 'No data',
- bool zebraStripes = true,
- bool stickyHeader = true,
- bool dense = false,
- Key? rowKey(
- T row,
- int index
- Widget trailing(
- BuildContext context,
- T row,
- int index
- double? compactBreakpoint,
Creates a data table.
Implementation
const PrismDataTable({
super.key,
required this.rows,
required this.columns,
this.onRowTap,
this.emptyMessage = 'No data',
this.zebraStripes = true,
this.stickyHeader = true,
this.dense = false,
this.rowKey,
this.trailing,
this.compactBreakpoint,
});