DropdownView<T> constructor
const
DropdownView<T> ({
- Key? key,
- T? initValue,
- required List<
T> items, - required MenuIndexedWidgetBuilder itemBuilder,
- MenuIndexedWidgetBuilder? selectedItemBuilder,
- VoidCallback? onTap,
- ValueChanged<
T> ? onChanged, - EdgeInsets? itemPadding,
- Color? itemBackgroundColor,
- Color? unselectItemBackgroundColor,
- double? itemHeight,
- bool isDropdown = false,
- bool forceWidth = false,
- bool? isPinnedSelected,
- bool isOutsideShadow = false,
- Color? dropdownColor,
- BorderRadius? borderRadius,
- MenuFocusWidgetBuilder? hintBuilder,
- Widget? disabledHint,
- Widget? icon,
- Widget? iconSelect,
- 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);