PasswordInput constructor

const PasswordInput({
  1. Key? key,
  2. String? label = 'Password',
  3. bool isRequired = false,
  4. int? characterLimit,
  5. InputControlType type = InputControlType.gray,
  6. IconData? leftIcon,
  7. Widget? leftIconWidget,
  8. String? prefix,
  9. Widget? prefixWidget,
  10. String placeholder = 'Enter password',
  11. String? value,
  12. TextEditingController? controller,
  13. FocusNode? focusNode,
  14. String? suffix,
  15. Widget? suffixWidget,
  16. bool showEyeToggle = true,
  17. bool initiallyObscured = true,
  18. String obscuringCharacter = '•',
  19. ValueChanged<bool>? onToggleObscure,
  20. bool allowSpaces = false,
  21. List<TextInputFormatter>? inputFormatters,
  22. int? minCharacters = 8,
  23. bool requireNumber = false,
  24. bool requireSpecialChar = false,
  25. bool requireUppercase = false,
  26. bool requireLowercase = false,
  27. bool autoValidateRules = true,
  28. String? minCharactersErrorText,
  29. String? requireNumberErrorText,
  30. String? requireSpecialCharErrorText,
  31. String? requireUppercaseErrorText,
  32. String? requireLowercaseErrorText,
  33. String? requiredErrorText,
  34. bool isError = false,
  35. bool showErrorMessage = true,
  36. String errorMessage = 'Error Message',
  37. List<String>? errorMessages,
  38. Widget? errorIconWidget,
  39. FormFieldValidator<String>? validator,
  40. FormFieldSetter<String>? onSaved,
  41. AutovalidateMode? autovalidateMode,
  42. bool enabled = true,
  43. bool readOnly = false,
  44. bool autofocus = false,
  45. ValueChanged<String>? onChanged,
  46. ValueChanged<String>? onSubmitted,
  47. 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,
});