or method

AirtableQueryCrud or(
  1. Map<String, String> conditions
)

Adds a condition with OR logic.

Implementation

AirtableQueryCrud or(Map<String, String> conditions) {
  if (_clauses.isEmpty) {
    throw Exception('No conditions exist to add OR logic.');
  }
  final lastClause = _clauses.removeLast();
  final orClause = "OR($lastClause, ${_buildClause(conditions).join(', ')})";
  _clauses.add(orClause);
  return this;
}