password static method
bool
password(
- String text, {
- bool camelCaseAndSpecialChar = false,
- dynamic lowerCaseAndSpecialChar = false,
- 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);
}