DropDownMenuItemNew<T> constructor

DropDownMenuItemNew<T>({
  1. Key? key,
  2. T? value,
  3. ValueChanged<bool?>? onItemChanged,
  4. dynamic displayName,
  5. List<T>? selectedList,
  6. VoidCallback? onTap,
  7. bool isMultiSelect = false,
  8. bool isChecked = false,
  9. String? optionFontFamily,
  10. Color? dropdownMenuItemFontColor,
  11. bool isSelected = false,
  12. List<T>? initialList,
})

Implementation

DropDownMenuItemNew({
  Key? key,
  this.value,
  this.onItemChanged, // Initialize the callback
  this.displayName,
  this.selectedList,
  this.onTap,
  this.isMultiSelect = false,
  this.isChecked = false,
  this.optionFontFamily,
  this.dropdownMenuItemFontColor,
  this.isSelected = false,
  this.initialList,
});