PasswordVisibleField constructor

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

Implementation

const PasswordVisibleField({
  this.labelPrefix,
  this.label,
  this.labelWidget,
  this.controller,
  this.keyboard,
  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.emptyIsNull = true,
  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.',
     );