isPhone method

bool isPhone()

判断字符串是否是手机号

Implementation

bool isPhone() => RegExp(r'^1(3|4|5|6|7|8|9)\d{9}$').hasMatch(this);