createObjectRow method
Implementation
SimpleTableRow createObjectRow(T object) {
objectList.add(object);
final rowData = objectRowAdapter(object)..add(object);
final newRow = super.createRow(rowData);
if (_selectable) {
final checkboxField = CheckboxField()
..width = '40px'
..onValueChange.listen((event) {
_onCheckBoxSelect(
ObjectTableSelectEvent(object, selected: event.newValue));
});
final cell = SimpleCell.createComponentCell(checkboxField);
newRow.insert(0, cell);
}
return newRow;
}