getHighestMatchFromMatches function
- List<
PercentageMatch> matches
Returns the match having the highest PercentageMatch.percentage.
If there are multiple matches with having the same
PercentageMatch.percentage, the first one will be returned.
null
will be returned if there are no matches.
Implementation
PercentageMatch getHighestMatchFromMatches(List<PercentageMatch> matches) =>
getHighestMatchesFromMatches(matches)?.first;