TreeDataTable.eager constructor
const
TreeDataTable.eager({
- Key? key,
- bool headerPinned = true,
- double headerMinExtent = 51,
- double headerMaxExtent = 51,
- required List<
HeaderRow> headerRows, - required TreeDataTableEagerDataSource dataSource,
- String? persistColumnStateId,
- bool scaleColumnsToFit = false,
- TreeDataTableRowSelectionMode rowSelectionMode = TreeDataTableRowSelectionMode.none,
- Set<
Object> ? selectedRowIds, - Set<
Object> initialSelectedRowIds = const <Object>{}, - TreeDataTableRowSelectionChanged? onRowSelectionChanged,
- bool showSelectionCheckboxes = false,
- bool selectRowsOnTap = false,
- ValueChanged<
TreeDataTableFilterState> ? onFilterChanged,
Creates a normal table from a typed eager dataSource.
Implementation
// The explicit subtype keeps eager and lazy configuration distinct.
const TreeDataTable.eager({
super.key,
this.headerPinned = true,
this.headerMinExtent = 51,
this.headerMaxExtent = 51,
required this.headerRows,
required TreeDataTableEagerDataSource dataSource,
this.persistColumnStateId,
this.scaleColumnsToFit = false,
this.rowSelectionMode = TreeDataTableRowSelectionMode.none,
this.selectedRowIds,
this.initialSelectedRowIds = const <Object>{},
this.onRowSelectionChanged,
this.showSelectionCheckboxes = false,
this.selectRowsOnTap = false,
this.onFilterChanged,
}) :
// ignore: prefer_initializing_formals
dataSource = dataSource,
assert(headerMinExtent >= 0, 'headerMinExtent cannot be negative'),
assert(headerMaxExtent >= headerMinExtent, 'headerMaxExtent must be at least headerMinExtent');