getCellText method

Future<String> getCellText(
  1. int row,
  2. int col
)

Get the text of a cell at the given row and col.

Implementation

Future<String> getCellText(int row, int col) async {
  final resp = await getCellsRange(row, col, row, col);
  if (resp.cells.isNotEmpty) {
    final v = resp.cells.first.value;
    if (v.hasText()) return v.text;
  }
  return '';
}