applyCellStyle method

void applyCellStyle(
  1. dynamic styleFunction(
    1. int rowIdx,
    2. int colIdx,
    3. SimpleCell cell
    )
)

Implementation

void applyCellStyle(
    Function(int rowIdx, int colIdx, SimpleCell cell) styleFunction) {
  var r = 0;
  for (final row in rows) {
    var c = 0;
    for (final cell in row.cells) {
      styleFunction(r, c, cell);
      c++;
    }
    r++;
  }
}