WebDataTable constructor

const WebDataTable({
  1. Key? key,
  2. required Widget header,
  3. List<Widget>? actions,
  4. double dataRowHeight = kMinInteractiveDimension,
  5. double headingRowHeight = 56.0,
  6. double horizontalMargin = 24.0,
  7. double columnSpacing = 56.0,
  8. int initialFirstRowIndex = 0,
  9. ValueChanged<int>? onPageChanged,
  10. int rowsPerPage = defaultRowsPerPage,
  11. List<int> availableRowsPerPage = const [defaultRowsPerPage, defaultRowsPerPage * 2, defaultRowsPerPage * 5, defaultRowsPerPage * 10],
  12. dynamic onRowsPerPageChanged(
    1. int? rowsPerPage
    )?,
  13. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  14. dynamic onSort(
    1. String columnName,
    2. bool ascending
    )?,
  15. required WebDataTableSource source,
})

Implementation

const WebDataTable({
  Key? key,
  required this.header,
  this.actions,
  this.dataRowHeight = kMinInteractiveDimension,
  this.headingRowHeight = 56.0,
  this.horizontalMargin = 24.0,
  this.columnSpacing = 56.0,
  this.initialFirstRowIndex = 0,
  this.onPageChanged,
  this.rowsPerPage = defaultRowsPerPage,
  this.availableRowsPerPage = const [
    defaultRowsPerPage,
    defaultRowsPerPage * 2,
    defaultRowsPerPage * 5,
    defaultRowsPerPage * 10,
  ],
  this.onRowsPerPageChanged,
  this.dragStartBehavior = DragStartBehavior.start,
  this.onSort,
  required this.source,
}) : super(key: key);