orWhereGroup method

Query<T> orWhereGroup(
  1. void callback(
    1. Query<T> q
    )
)

---------- OR WHERE GROUP ----------

Implementation

Query<T> orWhereGroup(void Function(Query<T> q) callback) {
  final sub = Query<T>(model);
  callback(sub);

  if (sub.base.where != null) {
    base.addOrWhereGroup(
      sub.base.where!,
      sub.base.params,
    );
  }

  return this;
}