getCellData method

void getCellData(
  1. int index,
  2. CellData cellData, {
  3. bool includeUnderlineColor = true,
})

Implementation

void getCellData(
  int index,
  CellData cellData, {
  bool includeUnderlineColor = true,
}) {
  cellData.foreground = _field(index, _cellForeground);
  cellData.background = _field(index, _cellBackground);
  cellData.underlineColor = switch (includeUnderlineColor) {
    true => _underlineColors?[index] ?? 0,
    false => 0,
  };
  cellData.flags = _field(index, _cellAttributes);
  cellData.content = _field(index, _cellContent);
}