cellInitialize method

void cellInitialize(
  1. int index, {
  2. required int content,
  3. required int width,
  4. required Cursor cursor,
})
override

Implementation

void cellInitialize(
  int index, {
  required int content,
  required int width,
  required Cursor cursor,
}) {
  final cell = index * _cellSize;
  _cells[cell + _cellContent] = content;
  _cells[cell + _cellFgColor] = cursor.fg;
  _cells[cell + _cellBgColor] = cursor.bg;
  _cells[cell + _cellAttributes] =
      (width << _cellWidth) + (cursor.flags << _cellFlags);
}