stringAny function
Check if any characters meet criteria
Implementation
bool stringAny(bool Function(String sub) anyFunction, String s) {
if (s.isEmpty) {
return false;
}
for (int i in s.codeUnits) {
if (anyFunction(String.fromCharCode(i))) {
return true;
}
}
return false;
}