isContainsAlphabetLetter property

bool get isContainsAlphabetLetter

Checks whether the given string contains a single letter or not and return True if contains otherwise return False

Implementation

bool get isContainsAlphabetLetter {
  if (isEmptyOrNull) return false;
  RegExp isLetterRegExp = RegExp(r'[A-Za-z]', caseSensitive: false);
  return isLetterRegExp.hasMatch(this!);
}