isIDCard static method
Return whether input matches regex of id card number. 返回输入是否匹配身份证号码的正则表达式。
Implementation
static bool isIDCard(String input) {
if (input.length == 15) {
return isIDCard15(input);
}
if (input.length == 18) {
return isIDCard18Exact(input);
}
return false;
}