forEach method

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

Run a function taking a a key and its value on the whole QueryResultRow.

Implementation

@override
void forEach(Function keyValueFunction) {
  if (postgreSQLResultRow != null) {
    postgreSQLResultRow!.toColumnMap().forEach((key, value) {
      keyValueFunction(key, value);
    });
    return;
  }
  throw StateError("No query result defined.");
}