PasswordVisibleField constructor

const PasswordVisibleField({
  1. String? labelPrefix,
  2. String? label,
  3. Widget? labelWidget,
  4. TextEditingController? controller,
  5. String? validator(
    1. String? value
    )?,
  6. List<TextInputFormatter>? inputFormatter,
  7. TextAlign textAlign = TextAlign.start,
  8. int? maxLength,
  9. void onSaved(
    1. String? value
    )?,
  10. bool enabled = true,
  11. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  12. ValueChanged<String?>? onChanged,
  13. FocusNode? focusNode,
  14. TextInputAction? textInputAction,
  15. ValueChanged<String?>? onFieldSubmitted,
  16. bool autocorrect = false,
  17. bool enableSuggestions = false,
  18. TextCapitalization textCapitalization = TextCapitalization.none,
  19. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  20. bool enableInteractiveSelection = true,
  21. bool filled = false,
  22. Color? fillColor,
  23. Iterable<String>? autofillHints,
  24. TextStyle? style,
  25. InputDecoration? decoration,
  26. EdgeInsets padding = const EdgeInsets.all(8),
  27. bool startObscured = true,
  28. String? hintText,
  29. EdgeInsets? contentPadding,
  30. String? counterText = '',
  31. Widget? prefix,
  32. Widget? prefixIcon,
  33. void onTap()?,
  34. int? sizeExtraSmall,
  35. int? sizeSmall,
  36. int? sizeMedium,
  37. int? sizeLarge,
  38. int? sizeExtraLarge,
  39. double? minHeight,
  40. Key? key,
})

Implementation

const PasswordVisibleField({
  this.labelPrefix,
  this.label,
  this.labelWidget,
  this.controller,
  this.validator,
  this.inputFormatter,
  this.textAlign = TextAlign.start,
  this.maxLength,
  this.onSaved,
  this.enabled = true,
  this.autoValidateMode = AutovalidateMode.disabled,
  this.onChanged,
  this.focusNode,
  this.textInputAction,
  this.onFieldSubmitted,
  this.autocorrect = false,
  this.enableSuggestions = false,
  this.textCapitalization = TextCapitalization.none,
  this.scrollPadding = const EdgeInsets.all(20),
  this.enableInteractiveSelection = true,
  this.filled = false,
  this.fillColor,
  this.autofillHints,
  this.style,
  this.decoration,
  this.padding = const EdgeInsets.all(8),
  this.startObscured = true,
  this.hintText,
  this.contentPadding,
  this.counterText = '',
  this.prefix,
  this.prefixIcon,
  this.onTap,
  super.sizeExtraSmall,
  super.sizeSmall,
  super.sizeMedium,
  super.sizeLarge,
  super.sizeExtraLarge,
  super.minHeight,
  super.key,
}) : assert(
        label == null || labelWidget == null,
        'label or labelWidget must be null.',
      );