CustomDropdownSingleDynamicAPI constructor
const
CustomDropdownSingleDynamicAPI({
- Key? key,
- double? width,
- bool isEnabled = true,
- bool isAddNewButton = false,
- void onAddNewPressed()?,
- required Future<
List< dynamicAPIs,DropDownResponse> > - required void onChanged(
- DropDownResponse? selectedItem
- DropDownResponse? selectedItem,
- String hintText = 'Select Item',
- bool isValidator = false,
Implementation
const CustomDropdownSingleDynamicAPI(
{super.key,
this.width,
this.isEnabled = true,
this.isAddNewButton = false,
this.onAddNewPressed,
required this.dynamicAPIs,
required this.onChanged,
this.selectedItem,
this.hintText = 'Select Item',
this.isValidator = false})
: assert(
!(isAddNewButton && onAddNewPressed == null),
'onAddNewPressed must be provided when isAddNewButton is true',
);