anyChar method

bool anyChar(
  1. bool predicate(
    1. String element
    )
)

Returns the true if any symbol matching the given predicate

Implementation

bool anyChar(bool predicate(String element)) {
  return isNullOrEmpty.not()
      ? this!.split('').any((s) => predicate(s))
      : false;
}