asMap property

Iterable<Map<String, dynamic>> get asMap

Returns a "list of maps" representation of this result set. Each map has the same keys - the columnNames. The values are the actual values in the row.

Implementation

Iterable<Map<String, dynamic>> get asMap {
  return rows.map((row) {
    return {
      for (var column in columnNames) column: row[_columnIndexes[column]!],
    };
  });
}