protectCell method

TableCell protectCell(
  1. VectorDefinition cell, [
  2. 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);
}