chinaPhoneNumber static method
Implementation
static bool chinaPhoneNumber(String input) {
if (input.isEmpty) return false;
//手机正则验证
String regexPhoneNumber =
"^((13[0-9])|(15[^4])|(166)|(17[0-8])|(18[0-9])|(19[8-9])|(147,145))\\d{8}\$";
return RegExp(regexPhoneNumber).hasMatch(input);
}