password static method

bool password(
  1. String text, {
  2. bool camelCaseAndSpecialChar = false,
  3. dynamic lowerCaseAndSpecialChar = false,
  4. Pattern? pattern,
})

Implementation

static bool password(String text,
    {bool camelCaseAndSpecialChar = false,
    lowerCaseAndSpecialChar = false,
    Pattern? pattern}) {
  if (camelCaseAndSpecialChar) {
    return OwesomeValidator.password(
        text, OwesomeValidator.passwordMinLen8withCamelAndSpecialChar);
  }
  if (lowerCaseAndSpecialChar) {
    return OwesomeValidator.password(
        text, OwesomeValidator.passwordMinLen8withLowerCaseAndSpecialChar);
  }
  if (pattern != null) {
    return OwesomeValidator.password(text, pattern);
  }
  return OwesomeValidator.password(
      text, OwesomeValidator.patternNameOnlyChar);
}