colunas method
dynamic
colunas({})
Implementation
colunas({required Worksheet sheet, required int linha, required int coluna, required Style colunasStyle, required colunasList}) {
for (int index = 0; index < colunasList.length; index++) {
sheet.getRangeByIndex(linha, coluna).cellStyle = colunasStyle;
sheet.getRangeByIndex(linha, coluna).setText(colunasList[index]);
Range range = sheet.getRangeByIndex(linha, coluna);
range.cellStyle.wrapText = true;
coluna++;
}
}