cells property

List<Range> get cells

Gets a

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
List<Range> cells = sheet.getRangeByName('A1').cells;
for (Range range in cells)
{
    // Do some manipulations
}
List<int> bytes = workbook.saveAsStream();
File('RangeCells.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

List<Range> get cells {
  if (_cells.isEmpty && !_bCells) {
    _infillCells();
  }
  if (_cells.isEmpty) {
    throw Exception('Empty cells');
  }
  return _cells;
}