QueryResult constructor

QueryResult(
  1. List<String> columnNames,
  2. List<List<Object?>> rows
)

Constructs a QueryResult by specifying the order of column names in columnNames and the associated data in rows.

Implementation

QueryResult(this.columnNames, this.rows)
    : _columnIndexes = {
        for (var column in columnNames)
          column: columnNames.lastIndexOf(column)
      };