isPhone property

bool isPhone

是否是手机号

Implementation

bool get isPhone => hasMatch(
    "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(16[6])|(17[0,1,3,5-8])|(18[0-9])|(19[8,9]))\\d{8}\$");