asMapList method

List<Map<String, dynamic>> asMapList()

Implementation

List<Map<String, dynamic>> asMapList() {
  final result = <Map<String, dynamic>>[];
  if (valid == false) {
    return result;
  }
  if (empty) {
    return result;
  }

  for (int r = 0; r < _rows; r++) {
    final map = <String, dynamic>{};
    for (int c = 0; c < _columns; c++) {
      map[columnName(c)] = getValueAsString(r, c);
    }
    result.add(map);
  }
  return result;
}