WebDataTable constructor
const
WebDataTable({
- Key? key,
- required Widget header,
- List<
Widget> ? actions, - double dataRowHeight = kMinInteractiveDimension,
- double headingRowHeight = 56.0,
- double horizontalMargin = 24.0,
- double columnSpacing = 56.0,
- int initialFirstRowIndex = 0,
- ValueChanged<
int> ? onPageChanged, - int rowsPerPage = defaultRowsPerPage,
- List<
int> availableRowsPerPage = const [defaultRowsPerPage, defaultRowsPerPage * 2, defaultRowsPerPage * 5, defaultRowsPerPage * 10], - dynamic onRowsPerPageChanged(
- int? rowsPerPage
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- dynamic onSort()?,
- 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);