or static method

Performs a logical OR operation on an array of one or more queries.

Implementation

static ConversationQuery or(
  List<ConversationQuery> queries,
) {
  if (queries.length < 1) {
    throw ArgumentError.notNull(
      'queries',
    );
  }
  ConversationQuery compositionQuery = ConversationQuery._from(
    client: queries.first.client,
  );
  compositionQuery.condition = _LCCompositionalCondition(
    composition: _LCCompositionalCondition.Or,
  );
  for (var query in queries) {
    if (query.client != compositionQuery.client) {
      throw ArgumentError(
        'ConversationQuery.client inconsistency',
      );
    }
    compositionQuery.condition.add(query.condition);
  }
  return compositionQuery;
}