PasswordField constructor

const PasswordField({
  1. String? labelPrefix,
  2. String? label,
  3. Widget? labelWidget,
  4. TextEditingController? controller,
  5. TextInputType keyboard = TextInputType.text,
  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. String? hintText,
  29. EdgeInsets? contentPadding,
  30. String? counterText = '',
  31. Widget? prefix,
  32. Widget? prefixIcon,
  33. Widget? suffix,
  34. Widget? suffixIcon,
  35. bool emptyIsNull = true,
  36. void onTap()?,
  37. int? sizeExtraSmall,
  38. int? sizeSmall,
  39. int? sizeMedium,
  40. int? sizeLarge,
  41. int? sizeExtraLarge,
  42. double? minHeight,
  43. Key? key,
})

Implementation

const PasswordField({
  super.labelPrefix,
  super.label,
  super.labelWidget,
  super.controller,
  super.keyboard,
  super.validator,
  super.inputFormatter,
  super.textAlign,
  super.maxLength,
  super.onSaved,
  super.enabled,
  super.autoValidateMode,
  super.onChanged,
  super.focusNode,
  super.textInputAction,
  super.onFieldSubmitted,
  super.autocorrect = false,
  super.enableSuggestions = false,
  super.textCapitalization,
  super.scrollPadding,
  super.enableInteractiveSelection,
  super.filled,
  super.fillColor,
  super.autofillHints,
  super.style,
  super.decoration,
  super.padding,
  super.hintText,
  super.contentPadding,
  super.counterText,
  super.prefix,
  super.prefixIcon,
  super.suffix,
  super.suffixIcon,
  super.emptyIsNull = true,
  super.onTap,
  super.sizeExtraSmall,
  super.sizeSmall,
  super.sizeMedium,
  super.sizeLarge,
  super.sizeExtraLarge,
  super.minHeight,
  super.key,
}) : super(
       // keyboard: TextInputType.visiblePassword,
       minLines: 1,
       maxLines: 1,
       obscureText: true,
       trimOnSaved: false,
     );