isValidChineseMobile property
bool
get
isValidChineseMobile
是否为中国大陆手机号(正则 ^1[3-9]\d{9}$)。
Implementation
bool get isValidChineseMobile {
final s = this;
if (s == null || s.isEmpty) return false;
const pattern = r'^1[3-9]\d{9}$';
return RegExp(pattern).hasMatch(s);
}