CustomDropdownSingle constructor
CustomDropdownSingle({
- Key? key,
- double? width,
- required String hintText,
- required DropDownResponse? selectedItem,
- bool isEnabled = true,
- bool isAddNewButton = false,
- bool isAddManually = false,
- List<
DropDownResponse> ? items, - Future<
List< fetchData()?,DropDownResponse> > - VoidCallback? onAddNewPressed,
- ValueChanged<
String?> ? onManuallyPressed, - String? validationMessage,
- ValueChanged<
DropDownResponse?> ? onChanged, - bool isValidator = false,
- GlobalKey<
DropdownSearchState< ? dropDownKey,DropDownResponse> > - VerticalDirection direction = VerticalDirection.down,
Implementation
CustomDropdownSingle({
super.key,
this.width,
required this.hintText,
required this.selectedItem,
this.isEnabled = true,
this.isAddNewButton = false,
this.isAddManually = false,
this.items,
this.fetchData,
this.onAddNewPressed,
this.onManuallyPressed,
this.validationMessage,
this.onChanged,
this.isValidator = false,
this.dropDownKey,
this.direction = VerticalDirection.down,
});