firstByField static method

WhereCondition? firstByField(
  1. String fieldName,
  2. List<WhereCondition>? conditions
)

Find the first occurrance of a condition that evaluates a specific field For all conditions, use byField.

Implementation

static WhereCondition? firstByField(String fieldName, List<WhereCondition>? conditions) {
  final results = byField(fieldName, conditions);
  return results.isEmpty ? null : results.first;
}