SwayzeCellsController<CellDataType extends SwayzeCellData> constructor
SwayzeCellsController<CellDataType extends SwayzeCellData> ({
- required SwayzeController parent,
- required SwayzeCellsControllerCellParser<
CellDataType> cellParser, - 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);
}
}