anyChar method

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

Returns true if at least one element matches the given predicate. the predicate should have only one character

Implementation

// ignore: use_function_type_syntax_for_parameters
bool anyChar(bool predicate(String element)) =>
    split('').any((s) => predicate(s));