getText method

String? getText()

Get text value to the range.

Implementation

String? getText() {
  final String? strValue = worksheet.getRangeByIndex(row, column).text;
  if (strValue == null) {
    return null;
  }
  // ignore: prefer_final_locals
  for (int iRow = row, iLastRow = lastRow; iRow <= iLastRow; iRow++) {
    // ignore: prefer_final_locals
    for (int iCol = column, iLastCol = lastColumn; iCol <= iLastCol; iCol++) {
      final String? value = worksheet.getRangeByIndex(iRow, iCol).text;
      if (strValue != value) {
        return null;
      }
    }
  }
  return strValue;
}