List<dynamic> getRowByIndex(int index) { if (index < 0 || index > data.length) { throw Exception('Index out of bounds'); } return data[index].cells.map((e) { return e.value; }).toList(); }