anyChar method
Returns true
if at least one element matches the given predicate
.
the predicate
should have only one character
Implementation
bool anyChar(bool Function(String element) predicate) =>
this?.split('').any((s) => predicate(s)) ?? false;