CustomTextField constructor
const
CustomTextField({
- Key? key,
- required TextEditingController textEditingController,
- String? label,
- TextInputType? textInputType,
- bool? readOnly,
- bool? autofocus,
- TextStyle? textStyle,
- bool? enabled,
- String? validator()?,
- String? hintText,
- TextStyle? hintTextStyle,
- TextCapitalization textCapitalization = TextCapitalization.characters,
- int? maxLines,
- bool showCounter = false,
- TextStyle? counterStyle,
- int? maxLength,
- Widget? suffix,
- Pattern? pattern,
- bool wrapCustomBorder = false,
- String? errorText,
- EdgeInsets? padding,
- FocusNode? focusNode,
- TextStyle? labelStyle,
- void onChanged()?,
- bool obscureText = false,
- String obscuringCharacter = '•',
Implementation
const CustomTextField({
super.key,
required this.textEditingController,
this.label,
this.textInputType,
this.readOnly,
this.autofocus,
this.textStyle,
this.enabled,
this.validator,
this.hintText,
this.hintTextStyle,
this.textCapitalization = TextCapitalization.characters,
this.maxLines,
this.showCounter = false,
this.counterStyle,
this.maxLength,
this.suffix,
this.pattern,
this.wrapCustomBorder = false,
this.errorText,
this.padding,
this.focusNode,
this.labelStyle,
this.onChanged,
this.obscureText = false,
this.obscuringCharacter = '•',
});