SwayzeTableDataController<ParentType extends SwayzeController> constructor
SwayzeTableDataController<ParentType extends SwayzeController> ({
- required String id,
- required ParentType parent,
- required int columnCount,
- required int rowCount,
- required Iterable<
SwayzeHeaderData> columns, - required Iterable<
SwayzeHeaderData> rows, - required int frozenColumns,
- required int frozenRows,
Implementation
SwayzeTableDataController({
required this.id,
required this.parent,
required int columnCount,
required int rowCount,
required Iterable<SwayzeHeaderData> columns,
required Iterable<SwayzeHeaderData> rows,
required int frozenColumns,
required int frozenRows,
}) : columns = SwayzeHeaderController._(
initialState: SwayzeHeaderState(
defaultHeaderExtent: config.kDefaultCellWidth,
count: columnCount,
headerData: columns,
frozenCount: frozenColumns,
),
),
rows = SwayzeHeaderController._(
initialState: SwayzeHeaderState(
defaultHeaderExtent: config.kDefaultCellHeight,
count: rowCount,
headerData: rows,
frozenCount: frozenRows,
),
),
super() {
parent.selection.addListener(handleSelectionChange);
}