DropdownView<T> constructor

const DropdownView<T>({
  1. Key? key,
  2. T? initValue,
  3. required List<T> items,
  4. required MenuIndexedWidgetBuilder itemBuilder,
  5. MenuIndexedWidgetBuilder? selectedItemBuilder,
  6. VoidCallback? onTap,
  7. ValueChanged<T>? onChanged,
  8. EdgeInsets? itemPadding,
  9. Color? itemBackgroundColor,
  10. Color? unselectItemBackgroundColor,
  11. double? itemHeight,
  12. double? menuMaxHeight,
  13. bool isDropdown = false,
  14. bool forceWidth = false,
  15. bool? isPinnedSelected,
  16. bool isOutsideShadow = false,
  17. Color? dropdownColor,
  18. BorderRadius? borderRadius,
  19. MenuFocusWidgetBuilder? hintBuilder,
  20. Widget? disabledHint,
  21. Widget? icon,
  22. Widget? iconSelect,
  23. int elevation = 8,
})

Implementation

const DropdownView({
  Key? key,
  this.initValue,
  required this.items,
  required this.itemBuilder,
  this.selectedItemBuilder,
  this.onTap,
  this.onChanged,
  this.itemPadding,
  this.itemBackgroundColor,
  this.unselectItemBackgroundColor,
  this.itemHeight,
  this.menuMaxHeight,
  this.isDropdown = false,
  this.forceWidth = false,
  this.isPinnedSelected,
  this.isOutsideShadow = false,
  this.dropdownColor,
  this.borderRadius,
  this.hintBuilder,
  this.disabledHint,
  this.icon,
  this.iconSelect,
  int elevation = 8,
})  : elevation = isOutsideShadow ? 0 : elevation,
      super(key: key);