BasicInputDropdownSelect<T> constructor
const
BasicInputDropdownSelect<T> ({
- Key? key,
- String? name,
- required List<
BasicInputDropdownItemModel< filterOption(),T> > - required dynamic onSelected(),
- bool tagsAbleScroll = false,
- bool closeDropdownAfterSelect = true,
- TextEditingController? searchController,
- String hintTextSearch = 'Search',
- Widget? prefixIconSearch,
- Color? backgroundColorSelected,
- Widget? iconSelected,
- Offset? offset,
- double? maxHeightPopup,
- double? minHeightPopup,
- double? maxWidthPopup,
- double? minWidthPopup,
- BasicInputSize? size,
- double? width,
- String? initialValue,
- TextEditingController? controller,
- FocusNode? focusNode,
- dynamic onFocusChange()?,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextInputAction? textInputAction,
- TextInputType? keyboardType,
- int maxLines = 1,
- int? minLines,
- int? maxLength,
- bool enabled = true,
- bool obscureText = false,
- EdgeInsets? scrollPadding,
- Color? cursorColor,
- AutovalidateMode? autoValidateMode,
- FormFieldValidator<
String> ? validator, - List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String?> ? onChanged, - GestureTapCallback? onTap,
- VoidCallback? onEditingComplete,
- FormFieldSetter? onSaved,
- bool? isDense,
- bool? filled,
- EdgeInsets? contentPadding,
- InputBorder? focusedBorder,
- InputBorder? enabledBorder,
- InputBorder? disabledBorder,
- InputBorder? errorBorder,
- InputBorder? focusedErrorBorder,
- Color? fillColor,
- Color? hoverColor,
- String? labelText,
- TextStyle? labelStyle,
- TextStyle? floatingLabelStyle,
- FloatingLabelBehavior? floatingLabelBehavior,
- String? hintText,
- TextStyle? hintStyle,
- String? errorText,
- int? errorMaxLines,
- 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);