isChinaPhone property
bool
get
isChinaPhone
手机号验证
Implementation
bool get isChinaPhone =>
RegExp(r'^1([38]\d|4[579]|5[0-3,5-9]|66|7[0135678]|9[89])\d{8}$')
.hasMatch(this);
手机号验证
bool get isChinaPhone =>
RegExp(r'^1([38]\d|4[579]|5[0-3,5-9]|66|7[0135678]|9[89])\d{8}$')
.hasMatch(this);