ExpandableDataTable constructor
ExpandableDataTable({
- Key? key,
- required List<
ExpandableColumn> headers, - required List<
ExpandableRow> rows, - required int visibleColumnCount,
- int pageSize = 10,
- bool multipleExpansion = true,
- bool isEditable = true,
- void onRowChanged(
- ExpandableRow newRow
- void onPageChanged(
- int page
- Widget renderEditDialog(
- ExpandableRow row,
- void onSuccess(
- ExpandableRow newRow
- Widget renderCustomPagination()?,
- Widget renderExpansionContent(
- ExpandableRow row
Implementation
ExpandableDataTable({
Key? key,
required this.headers,
required this.rows,
required this.visibleColumnCount,
this.pageSize = 10,
this.multipleExpansion = true,
this.isEditable = true,
this.onRowChanged,
this.onPageChanged,
this.renderEditDialog,
this.renderCustomPagination,
this.renderExpansionContent,
}) : assert(visibleColumnCount > 0),
assert(
rows.isNotEmpty ? headers.length == rows.first.cells.length : true,
),
super(key: key);