GenericTextField constructor
const
GenericTextField({
- Key? key,
- bool enabled = true,
- bool errorBorder = false,
- bool error = false,
- bool success = false,
- bool autoFocus = false,
- bool dottedLine = false,
- TextInputAction inputAction = TextInputAction.done,
- required void onChange(),
- required String hint,
- ValueChanged<
String> ? onSubmit, - String initialValue = '',
- required String errorMessage,
- TextStyle? textStyle,
- TextStyle? hintStyle,
- required GenericTextFieldStyle style,
- List<
String> ? autoFillHints, - TextInputType? textInputType,
- TextEditingController? controller,
Implementation
const GenericTextField({
super.key,
this.enabled = true,
this.errorBorder = false,
this.error = false,
this.success = false,
this.autoFocus = false,
this.dottedLine = false,
this.inputAction = TextInputAction.done,
required this.onChange,
required this.hint,
this.onSubmit,
this.initialValue = '',
required this.errorMessage,
this.textStyle,
this.hintStyle,
required this.style,
this.autoFillHints,
this.textInputType,
this.controller,
});