QueryResult class

A result from an select statement.

Constructors

QueryResult(List<String> columnNames, List<List<Object?>> rows)
Constructs a QueryResult by specifying the order of column names in columnNames and the associated data in rows.
QueryResult.fromRows(List<Map<String, dynamic>> rows)
Converts the rows into columnNames and raw data QueryResult.rows. We assume that each map in rows has the same keys.
factory

Properties

asMap Iterable<Map<String, dynamic>>
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.
no setter
columnNames List<String>
Names of the columns returned by the select statement.
final
hashCode int
The hash code for this object.
no setterinherited
rows List<List<Object?>>
The data returned by the select statement. Each list represents a row, which has the data in the same order as columnNames.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited