getNumber method
Set number value to the range.
Implementation
double getNumber() {
final double? dValue = worksheet.getRangeByIndex(row, column).number;
if (dValue == null) {
return double.nan;
}
// 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 double? value = worksheet.getRangeByIndex(iRow, iCol).number;
if (dValue != value) {
return double.nan;
}
}
}
return dValue;
}