isPassword static method

bool isPassword(
  1. String? password, {
  2. String regex = regexPwd,
})

必须包含字母和数字, 6~18

Implementation

static bool isPassword(String? password, {String regex = regexPwd}) {
  return matches(regex, password);
}