MatchTargetItem _findMatchedItemForText(String text) { return targetMatches .where( (target) => target.regex?.hasMatch(text) ?? target.text == text, ) .firstOrNull ?? targetMatches.first; } targetMatches.first abnormal