getFormula method

String? getFormula()

Get formula value to the range.

Implementation

String? getFormula() {
  final String? strValue = worksheet.getRangeByIndex(row, column).formula;
  if (strValue == null) {
    return strValue;
  }
  for (int iRow = row; iRow <= lastRow; iRow++) {
    for (int iCol = column; iCol <= lastColumn; iCol++) {
      if (strValue != worksheet.getRangeByIndex(iRow, iCol).formula) {
        return null;
      }
    }
  }
  return strValue;
}