getRowByIndex method

List getRowByIndex(
  1. int index
)

Implementation

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();
}