isPhoneMobileValidAndEnglishLetter static method

bool isPhoneMobileValidAndEnglishLetter(
  1. String? str
)

Implementation

static bool isPhoneMobileValidAndEnglishLetter(String? str) {
  if (isEmpty( str)) {
    return false;
  }
  int len = str!.length;
  if (len  < 8) {  //01012345678  or without countrycode "1012345678 saudi "512345678"
    return false;
  }
  if( ToolsValidation.isStringContainArabicNumber(str!) ) {
    return false;
  }
  return true;
}