isIgnoreCharactersPresent static method

bool isIgnoreCharactersPresent(
  1. String string,
  2. List<String>? ignoreCharacters
)

Implementation

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

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