anyMatch function
Implementation
bool anyMatch(String? subject, List<String> potentials,
{bool caseSensitive = true}) {
if (subject == null) return false;
if (caseSensitive != true) {
subject = subject.toLowerCase();
}
for (var p in potentials) {
if (caseSensitive != true) {
p = p.toLowerCase();
}
if (p == subject) return true;
}
return false;
}