updateCell method

void updateCell(
  1. String sheet,
  2. CellIndex cellIndex,
  3. dynamic value, {
  4. CellStyle? cellStyle,
})

Updates the contents of sheet of the cellIndex: CellIndex.indexByColumnRow(0, 0); where indexing starts from 0

----or---- by cellIndex: CellIndex.indexByString("A3");.

Styling of cell can be done by passing the CellStyle object to cellStyle.

If sheet does not exist then it will be automatically created.

Implementation

void updateCell(String sheet, CellIndex cellIndex, dynamic value,
    {CellStyle? cellStyle}) {
  _availSheet(sheet);

  if (cellStyle != null) {
    _colorChanges = true;
    _sheetMap[sheet]!.updateCell(cellIndex, value, cellStyle: cellStyle);
  } else {
    _sheetMap[sheet]!.updateCell(cellIndex, value);
  }
}