stringEvery function
Check if every character meets criteria
Implementation
bool stringEvery(bool Function(String element) allFunction, String s) {
if (s.isEmpty) {
return false;
}
for (int i in s.codeUnits) {
if (!allFunction(String.fromCharCode(i))) {
return false;
}
}
return true;
}