insertRow method

void insertRow(
  1. String sheet,
  2. int rowIndex
)

Inserts an empty row in sheet at position = rowIndex.

If rowIndex == null or rowIndex < 0 if will not execute

If the sheet does not exists then it will be created automatically.

Implementation

void insertRow(String sheet, int rowIndex) {
  if (rowIndex < 0) {
    return;
  }
  _availSheet(sheet);
  _sheetMap[sheet]!.insertRow(rowIndex);
}