isAlphabetIncluded static method

bool isAlphabetIncluded(
  1. String string
)

Implementation

static bool isAlphabetIncluded(String string) {
  string = string.toUpperCase();
  for (int i = 0; i < string.length; i++) {
    if (string.codeUnitAt(i) >= 65 && string.codeUnitAt(i) <= 90) {
      return true;
    }
  }
  return false;
}