setCellData method
Implementation
void setCellData(int index, CellData cellData) {
final offset = index * _cellSize;
_data[offset + _cellForeground] = cellData.foreground;
_data[offset + _cellBackground] = cellData.background;
_data[offset + _cellAttributes] = cellData.flags;
_data[offset + _cellContent] = cellData.content;
_setUnderlineColor(index, cellData.underlineColor);
_combiningCharacters.remove(index);
}