HoverPasswordField constructor
HoverPasswordField({})
Implementation
HoverPasswordField({
String? initialValue,
int? passwordMinLength,
bool? requireLowercase,
bool? requireUppercase,
bool? requireSpecialCharacters,
}) : super(
name: fieldName,
labelText: fieldLabel,
initialValue: initialValue,
validator: HoverFluentValidator()
.validateAsPassword(
passwordMinLength ?? 8,
mustContainLowercase: requireLowercase ?? false,
mustContainUppercase: requireUppercase ?? false,
mustContainNumber: requireSpecialCharacters ?? false,
)
.validateAsRequired()
.build(),
);