asMaps method

List<Map> asMaps()

Implementation

List<Map<dynamic, dynamic>> asMaps() {
  final headers = _data.first;
  return _data.skip(1).map((row) {
    final map = <dynamic, dynamic>{};
    headers.forEachIndexed((index, header) {
      map[header] = row[index];
    });
    return map;
  }).toList();
}