forEach method

  1. @override
void forEach(
  1. Function rowFunction
)
override

Run a function taking a QueryResultRow on the whole QueryResult.

Implementation

@override
void forEach(Function rowFunction) {
  if (sqliteResultSet != null) {
    sqliteResultSet!.forEach((row) {
      rowFunction(SqliteQueryResultRow.fromSqliteResultSetRow(row));
    });
    return;
  }
  throw StateError("No query result defined.");
}