NiceDataGrid<T> constructor

const NiceDataGrid<T>({
  1. Key? key,
  2. required List<NiceGridColumn<T>> columns,
  3. required List<T> rows,
  4. double rowHeight = 48.0,
  5. double headerHeight = 52.0,
  6. void onRowTap(
    1. T row,
    2. int index
    )?,
  7. void onRowDoubleTap(
    1. T row,
    2. int index
    )?,
  8. int? selectedIndex,
  9. void onSort(
    1. NiceGridSort sort
    )?,
  10. NiceGridSort? sort,
  11. bool showBorder = true,
  12. bool showStripes = true,
  13. Widget? emptyWidget,
  14. Key keyExtractor(
    1. T row
    )?,
})

Implementation

const NiceDataGrid({
  super.key,
  required this.columns,
  required this.rows,
  this.rowHeight = 48.0,
  this.headerHeight = 52.0,
  this.onRowTap,
  this.onRowDoubleTap,
  this.selectedIndex,
  this.onSort,
  this.sort,
  this.showBorder = true,
  this.showStripes = true,
  this.emptyWidget,
  this.keyExtractor,
});