BasicInputTypeAhead<T> constructor

const BasicInputTypeAhead<T>({
  1. Key? key,
  2. String? name,
  3. bool isSelectOne = true,
  4. required dynamic onSelected(
    1. BasicInputTypeAheadDropdownItemModel<T>,
    2. List<BasicInputTypeAheadDropdownItemModel<T>>
    ),
  5. required Future<List<BasicInputTypeAheadDropdownItemModel<T>>> initMenuChildren(),
  6. required Future<List<BasicInputTypeAheadDropdownItemModel<T>>> onLoadingMenuChildren(),
  7. required Future<List<BasicInputTypeAheadDropdownItemModel<T>>> onRefreshMenuChildren(),
  8. Future<List<BasicInputTypeAheadDropdownItemModel<T>>> onSearchMenuChildren(
    1. String
    )?,
  9. bool reloadMenuChildrenEachOpen = false,
  10. bool closeDropdownAfterSelect = true,
  11. TextEditingController? searchController,
  12. bool tagsAbleScroll = false,
  13. String hintTextSearch = 'Search',
  14. Widget? prefixIconSearch,
  15. Color? backgroundColorSelected,
  16. Widget? iconSelected,
  17. Offset? offset,
  18. double? maxHeightPopup,
  19. required double minHeightPopup,
  20. double? maxWidthPopup,
  21. double? minWidthPopup,
  22. BasicInputSize? size,
  23. double? width,
  24. List<BasicInputTypeAheadDropdownItemModel<T>>? initialValue,
  25. TextEditingController? controller,
  26. FocusNode? focusNode,
  27. dynamic onFocusChange(
    1. bool
    )?,
  28. TextAlign textAlign = TextAlign.start,
  29. TextAlignVertical? textAlignVertical,
  30. TextInputAction? textInputAction,
  31. TextInputType? keyboardType,
  32. int maxLines = 1,
  33. int? minLines,
  34. int? maxLength,
  35. bool enabled = true,
  36. bool obscureText = false,
  37. EdgeInsets? scrollPadding,
  38. Color? cursorColor,
  39. AutovalidateMode? autoValidateMode,
  40. FormFieldValidator<String>? validator,
  41. List<TextInputFormatter>? inputFormatters,
  42. ValueTransformer<List<BasicInputTypeAheadDropdownItemModel<T>>?>? valueTransformer,
  43. ValueChanged<String?>? onChanged,
  44. GestureTapCallback? onTap,
  45. VoidCallback? onEditingComplete,
  46. FormFieldSetter? onSaved,
  47. bool? isDense,
  48. bool? filled,
  49. Widget? prefixIcon,
  50. Widget? suffixIcon,
  51. EdgeInsets? contentPadding,
  52. InputBorder? focusedBorder,
  53. InputBorder? enabledBorder,
  54. InputBorder? disabledBorder,
  55. InputBorder? errorBorder,
  56. InputBorder? focusedErrorBorder,
  57. Color? fillColor,
  58. Color? hoverColor,
  59. String? labelText,
  60. TextStyle? labelStyle,
  61. TextStyle? floatingLabelStyle,
  62. FloatingLabelBehavior? floatingLabelBehavior,
  63. String? hintText,
  64. TextStyle? hintStyle,
  65. String? errorText,
  66. int? errorMaxLines,
  67. TextStyle? errorStyle,
})

Implementation

const BasicInputTypeAhead({
  Key? key,
  this.name,
  this.isSelectOne = true,
  required this.onSelected,
  required this.initMenuChildren,
  required this.onLoadingMenuChildren,
  required this.onRefreshMenuChildren,
  this.onSearchMenuChildren,
  this.reloadMenuChildrenEachOpen = false,
  this.closeDropdownAfterSelect = true,
  this.searchController,
  this.tagsAbleScroll = false,
  this.hintTextSearch = 'Search',
  this.prefixIconSearch,
  this.backgroundColorSelected,
  this.iconSelected,
  this.offset,
  this.maxHeightPopup,
  required this.minHeightPopup,
  this.maxWidthPopup,
  this.minWidthPopup,
  this.size,
  this.width,
  this.initialValue,
  this.controller,
  this.focusNode,
  this.onFocusChange,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textInputAction,
  this.keyboardType,
  this.maxLines = 1,
  this.minLines,
  this.maxLength,
  this.enabled = true,
  this.obscureText = false,
  this.scrollPadding,
  this.cursorColor,
  this.autoValidateMode,
  this.validator,
  this.inputFormatters,
  this.valueTransformer,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onSaved,
  this.isDense,
  this.filled,
  this.prefixIcon,
  this.suffixIcon,
  this.contentPadding,
  this.focusedBorder,
  this.enabledBorder,
  this.disabledBorder,
  this.errorBorder,
  this.focusedErrorBorder,
  this.fillColor,
  this.hoverColor,
  this.labelText,
  this.labelStyle,
  this.floatingLabelStyle,
  this.floatingLabelBehavior,
  this.hintText,
  this.hintStyle,
  this.errorText,
  this.errorMaxLines,
  this.errorStyle,
}) : super(key: key);