BasicInputDropdownSelect<T> constructor

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

Implementation

const BasicInputDropdownSelect({
  Key? key,
  this.name,
  required this.filterOption,
  required this.menuChildren,
  required this.onSelected,
  this.tagsAbleScroll = false,
  this.closeDropdownAfterSelect = true,
  this.searchController,
  this.hintTextSearch = 'Search',
  this.prefixIconSearch,
  this.backgroundColorSelected,
  this.iconSelected,
  this.offset,
  this.maxHeightPopup,
  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, // ẩn tạm vì chưa dùng tới
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onSaved,
  this.isDense,
  this.filled,
  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);