InputField<T> constructor

InputField<T>({
  1. Key? key,
  2. required String placeholder,
  3. String? hintText,
  4. ValueChanged<T?>? onChanged,
  5. ValueChanged<T?>? onSaved,
  6. String? helperText,
  7. int minLines = 1,
  8. int maxLines = 1,
  9. VoidCallback? onSubmit,
  10. FormFieldValidator<T>? validator,
  11. bool isRequired = true,
  12. String? requiredText,
  13. T? initialValue,
  14. List<TextInputFormatter>? formatters,
  15. TextInputType? keyboardType,
  16. TextInputAction? inputAction,
  17. bool isActive = true,
  18. bool isDisabled = false,
  19. bool emitDirty = true,
  20. bool obscureText = false,
  21. bool enableSuggestions = true,
  22. bool autocorrect = true,
  23. Iterable<String>? autofillHints,
  24. Widget? suffix,
})

Implementation

InputField({
  Key? key,
  required this.placeholder,
  this.hintText,
  ValueChanged<T?>? onChanged,
  ValueChanged<T?>? onSaved,
  this.helperText,
  this.minLines = 1,
  this.maxLines = 1,
  this.onSubmit,
  this.validator,
  bool isRequired = true,
  String? requiredText,
  T? initialValue,
  this.formatters,
  this.keyboardType,
  this.inputAction,
  bool isActive = true,
  bool isDisabled = false,
  this.emitDirty = true,
  bool obscureText = false,
  this.enableSuggestions = true,
  this.autocorrect = true,
  this.autofillHints,
  Widget? suffix,
})  : _value = initialValue,
      _obscureText = obscureText,
      _suffix = suffix,
      super(
        key: key,
        onChanged: onChanged,
        onSaved: onSaved,
        isActive: isActive,
        isRequired: isRequired,
        requiredText: requiredText,
        isDisabled: isDisabled,
      );