protectCell method
- VectorDefinition cell, [
- Channel? id
Implementation
TableCell protectCell(VectorDefinition cell, [Channel? id]) {
final cellObject = table.getCell(cell);
if (cellObject.isEmpty) return cellObject;
final cellVisible = isCellVisible(toGlobal(cell), id);
final objects = cellObject.objects
.map((e) => e.copyWith(
variation: cellVisible && !e.hidden ? e.variation : null,
))
.toList();
return cellObject.copyWith(objects: objects);
}