GenericTextField constructor

const GenericTextField({
  1. Key? key,
  2. bool enabled = true,
  3. bool errorBorder = false,
  4. bool error = false,
  5. bool success = false,
  6. bool autoFocus = false,
  7. bool dottedLine = false,
  8. TextInputAction inputAction = TextInputAction.done,
  9. required void onChange(
    1. String
    ),
  10. required String hint,
  11. ValueChanged<String>? onSubmit,
  12. String initialValue = '',
  13. required String errorMessage,
  14. TextStyle? textStyle,
  15. TextStyle? hintStyle,
  16. required GenericTextFieldStyle style,
  17. List<String>? autoFillHints,
  18. TextInputType? textInputType,
  19. 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,
});