isChineseMobile property

bool isChineseMobile

Determines if the string is a valid Chinese mobile phone number based on the pattern.

Example:

print('13912345678'.isChineseMobile); // Output: true
print('10086'.isChineseMobile); // Output: false

Implementation

bool get isChineseMobile => RegExp(r'^1[3-9]\d{9}$').hasMatch(this);