searchUnits method
Implementation
void searchUnits(List<UcumConcept> concepts, List<UcumUnit> units,
String text, bool isRegex) {
for (final UcumUnit unit in units) {
if (matchesUnit(unit, text, isRegex)) {
// Assuming here that UcumUnit extends or implements UcumConcept
concepts.add(unit);
}
}
}