PasswordInput constructor
const
PasswordInput({
- Key? key,
- String? label = 'Password',
- bool isRequired = false,
- int? characterLimit,
- InputControlType type = InputControlType.gray,
- IconData? leftIcon,
- Widget? leftIconWidget,
- String? prefix,
- Widget? prefixWidget,
- String placeholder = 'Enter password',
- String? value,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? suffix,
- Widget? suffixWidget,
- bool showEyeToggle = true,
- bool initiallyObscured = true,
- String obscuringCharacter = '•',
- ValueChanged<
bool> ? onToggleObscure, - bool allowSpaces = false,
- List<
TextInputFormatter> ? inputFormatters, - int? minCharacters = 8,
- bool requireNumber = false,
- bool requireSpecialChar = false,
- bool requireUppercase = false,
- bool requireLowercase = false,
- bool autoValidateRules = true,
- String? minCharactersErrorText,
- String? requireNumberErrorText,
- String? requireSpecialCharErrorText,
- String? requireUppercaseErrorText,
- String? requireLowercaseErrorText,
- String? requiredErrorText,
- bool isError = false,
- bool showErrorMessage = true,
- String errorMessage = 'Error Message',
- List<
String> ? errorMessages, - Widget? errorIconWidget,
- FormFieldValidator<
String> ? validator, - FormFieldSetter<
String> ? onSaved, - AutovalidateMode? autovalidateMode,
- bool enabled = true,
- bool readOnly = false,
- bool autofocus = false,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onTap,
Creates a PasswordInput instance.
Implementation
const PasswordInput({
super.key,
this.label = 'Password',
this.isRequired = false,
this.characterLimit,
this.type = InputControlType.gray,
this.leftIcon,
this.leftIconWidget,
this.prefix,
this.prefixWidget,
this.placeholder = 'Enter password',
this.value,
this.controller,
this.focusNode,
this.suffix,
this.suffixWidget,
this.showEyeToggle = true,
this.initiallyObscured = true,
this.obscuringCharacter = '•',
this.onToggleObscure,
this.allowSpaces = false,
this.inputFormatters,
this.minCharacters = 8,
this.requireNumber = false,
this.requireSpecialChar = false,
this.requireUppercase = false,
this.requireLowercase = false,
this.autoValidateRules = true,
this.minCharactersErrorText,
this.requireNumberErrorText,
this.requireSpecialCharErrorText,
this.requireUppercaseErrorText,
this.requireLowercaseErrorText,
this.requiredErrorText,
this.isError = false,
this.showErrorMessage = true,
this.errorMessage = 'Error Message',
this.errorMessages,
this.errorIconWidget,
this.validator,
this.onSaved,
this.autovalidateMode,
this.enabled = true,
this.readOnly = false,
this.autofocus = false,
this.onChanged,
this.onSubmitted,
this.onTap,
});