CrCellGroup constructor
Implementation
CrCellGroup({Key? key, required List<CrCell> cells, this.title})
: assert(cells.length >= 2),
super(key: key) {
for (var element in cells) {
element.$$isGroupItem = true;
}
cells.first.$$isFirstGroupItem = true;
cells.last.$$isFinalGroupItem = true;
List<Widget> _cells = [];
final len = cells.length - 1;
for (var i = 0; i <= len; i++) {
_cells.add(cells[i]);
if (i != len) {
_cells.add(const Divider(
height: 1,
indent: 14.0,
endIndent: 14.0,
));
}
}
this.cells = List.from(_cells);
}