SwayzeCellsController<CellDataType extends SwayzeCellData> constructor

SwayzeCellsController<CellDataType extends SwayzeCellData>({
  1. required SwayzeController parent,
  2. required SwayzeCellsControllerCellParser<CellDataType> cellParser,
  3. required Iterable initialRawCells,
})

Implementation

SwayzeCellsController({
  required this.parent,
  required this.cellParser,
  required Iterable<dynamic> initialRawCells,
}) {
  for (final initialCell in initialRawCells) {
    PutCellOperation<CellDataType>(cellParser(initialCell))
        .commit(_cellMatrix);
  }
}