groupBy method

void groupBy(
  1. Iterable<Expression<Object>> expressions, {
  2. Expression<bool>? having,
})

Groups the result by values in expressions.

An optional having attribute can be set to exclude certain groups.

Implementation

void groupBy(Iterable<Expression> expressions, {Expression<bool>? having}) {
  _groupBy = GroupBy._(expressions.toList(), having);
}