SuggestionTextField constructor

const SuggestionTextField({
  1. Key? key,
  2. required String fieldName,
  3. SuggestionFieldConfig config = const SuggestionFieldConfig(),
  4. OnSuggestionSelected? onSuggestionSelected,
  5. OnSubmit? onSubmit,
  6. Widget suggestionBuilder(
    1. BuildContext context,
    2. String suggestion,
    3. VoidCallback onTap,
    4. VoidCallback? onRemove,
    )?,
  7. BoxDecoration? suggestionBoxDecoration,
  8. TextStyle? suggestionTextStyle,
  9. TextEditingController? controller,
  10. FocusNode? focusNode,
  11. InputDecoration? decoration,
  12. String? labelText,
  13. String? hintText,
  14. TextStyle? style,
  15. TextAlign textAlign = TextAlign.start,
  16. TextInputType? keyboardType,
  17. TextInputAction? textInputAction,
  18. bool readOnly = false,
  19. bool enabled = true,
  20. bool obscureText = false,
  21. int? maxLines = 1,
  22. int? maxLength,
  23. ValueChanged<String>? onChanged,
  24. GestureTapCallback? onTap,
  25. VoidCallback? onEditingComplete,
  26. FormFieldValidator<String>? validator,
  27. AutovalidateMode? autovalidateMode,
  28. TextStyle? labelStyle,
  29. TextStyle? hintStyle,
  30. Widget? prefixIcon,
  31. Widget? suffixIcon,
  32. Color? fillColor,
  33. bool filled = false,
  34. EdgeInsetsGeometry? contentPadding,
  35. InputBorder? border,
  36. InputBorder? enabledBorder,
  37. InputBorder? focusedBorder,
})

Implementation

const SuggestionTextField({
  super.key,
  required this.fieldName,
  this.config = const SuggestionFieldConfig(),
  this.onSuggestionSelected,
  this.onSubmit,
  this.suggestionBuilder,
  this.suggestionBoxDecoration,
  this.suggestionTextStyle,
  this.controller,
  this.focusNode,
  this.decoration,
  this.labelText,
  this.hintText,
  this.style,
  this.textAlign = TextAlign.start,
  this.keyboardType,
  this.textInputAction,
  this.readOnly = false,
  this.enabled = true,
  this.obscureText = false,
  this.maxLines = 1,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.validator,
  this.autovalidateMode,
  this.labelStyle,
  this.hintStyle,
  this.prefixIcon,
  this.suffixIcon,
  this.fillColor,
  this.filled = false,
  this.contentPadding,
  this.border,
  this.enabledBorder,
  this.focusedBorder,
});