BasicPasswordField constructor

const BasicPasswordField({
  1. TextEditingController? controller,
  2. Key? key,
  3. String? labelText,
  4. String? hintText,
  5. String? helperText,
  6. bool enable = true,
  7. bool autofocus = false,
  8. bool readOnly = false,
  9. bool canRequestFocus = true,
  10. Iterable<String>? autofillHints,
  11. TextInputType? textInputType,
  12. TextInputAction? textInputAction,
  13. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(6)),
  14. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  15. TapRegionCallback? onTapOutside,
  16. FormFieldValidator<String>? validator,
  17. ValueSetter<String>? onChanged,
  18. VoidCallback? onTap,
  19. FocusNode? focusNode,
  20. AutovalidateMode? autovalidateMode,
  21. List<TextInputFormatter>? inputFormatters,
  22. Widget? prefixIcon,
})

Implementation

const BasicPasswordField({
  this.controller,
  super.key,
  this.labelText,
  this.hintText,
  this.helperText,
  this.enable = true,
  this.autofocus = false,
  this.readOnly = false,
  this.canRequestFocus = true,
  this.autofillHints,
  this.textInputType,
  this.textInputAction,
  this.borderRadius = const BorderRadius.all(Radius.circular(6)),
  this.contentPadding =
      const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
  this.onTapOutside,
  this.validator,
  this.onChanged,
  this.onTap,
  this.focusNode,
  this.autovalidateMode,
  this.inputFormatters,
  this.prefixIcon,
});