PasswordTextField constructor
PasswordTextField({
- Key? key,
- TextEditingController? controller,
- bool? isDense,
- EdgeInsets? contentPadding,
- InputBorder? border,
- BoxConstraints? constraints,
- String? hintText,
- TextStyle? hintTextStyle,
- TextStyle? style,
- dynamic onEditingComplete()?,
- dynamic onSubmitted(
- String val
- dynamic onChanged(
- String val
- List<
TextInputFormatter> ? inputFormatters, - TextInputAction? inputAction,
Implementation
PasswordTextField({super.key, this.controller, this.isDense, this.contentPadding, this.border, this.constraints, this.hintText, this.hintTextStyle, this.style, this.onEditingComplete, this.onSubmitted, this.onChanged, this.inputFormatters, this.inputAction}) {
controller?.addListener(() {
_showIcon.value = (controller?.isNotNullOrEmpty ?? false);
});
}