firstByField static method
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;
}