PrismDataTable<T> constructor

const PrismDataTable<T>({
  1. Key? key,
  2. required List<T> rows,
  3. required List<PrismColumn<T>> columns,
  4. void onRowTap(
    1. T row,
    2. int index
    )?,
  5. String emptyMessage = 'No data',
  6. bool zebraStripes = true,
  7. bool stickyHeader = true,
  8. bool dense = false,
  9. Key? rowKey(
    1. T row,
    2. int index
    )?,
  10. Widget trailing(
    1. BuildContext context,
    2. T row,
    3. int index
    )?,
  11. 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,
});