isIncludedCharactersPresent static method

bool isIncludedCharactersPresent(
  1. String string,
  2. List<String>? includeCharacters
)

Implementation

static bool isIncludedCharactersPresent(String string,
    List<String>? includeCharacters) {
  if (includeCharacters == null) {
    return false;
  }

  for (int i = 0; i < string.length; i++) {
    if (includeCharacters.contains(string[i])) {
      return true;
    }
  }
  return false;
}