SwayzeTableDataController<ParentType extends SwayzeController> constructor

SwayzeTableDataController<ParentType extends SwayzeController>({
  1. required String id,
  2. required ParentType parent,
  3. required int columnCount,
  4. required int rowCount,
  5. required Iterable<SwayzeHeaderData> columns,
  6. required Iterable<SwayzeHeaderData> rows,
  7. required int frozenColumns,
  8. 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);
}