isIDCard18 static method

bool isIDCard18(
  1. String input
)

Return whether input matches regex of id card number which length is 18.

Implementation

static bool isIDCard18(String input) {
  return matches(regexIdCard18, input);
}