NomoDropDownMenu<T> constructor

const NomoDropDownMenu<T>({
  1. required List<NomoDropdownItem<T>> items,
  2. void onChanged(
    1. T? value
    )?,
  3. Key? key,
  4. T? initialValue,
  5. double? width,
  6. double? height,
  7. Color? iconColor,
  8. TextStyle? textStyle,
  9. double? dropdownElevation,
  10. Offset? offset,
  11. Color? dropdownColor,
  12. double? minFontSize = 12,
  13. TextOverflow? overflow = TextOverflow.ellipsis,
  14. EdgeInsetsGeometry? padding,
  15. ShapeBorder? dropdownBorder,
  16. IconData icon = Icons.keyboard_arrow_down,
  17. bool disableRotation = false,
  18. ValueNotifier<T?>? valueNotifer,
  19. FocusNode? focusNode,
  20. Color? backgroundColor,
  21. BorderRadius? borderRadius,
  22. BorderSide? border,
  23. EdgeInsetsGeometry? itemPadding,
  24. double itemHeight = 48,
})

Implementation

const NomoDropDownMenu({
  required this.items,
  this.onChanged,
  super.key,
  this.initialValue,
  this.width,
  this.height,
  this.iconColor,
  this.textStyle,
  this.dropdownElevation,
  this.offset,
  this.dropdownColor,
  this.minFontSize = 12,
  this.overflow = TextOverflow.ellipsis,
  this.padding,
  this.dropdownBorder,
  this.icon = Icons.keyboard_arrow_down,
  this.disableRotation = false,
  this.valueNotifer,
  this.focusNode,
  this.backgroundColor,
  this.borderRadius,
  this.border,
  this.itemPadding,
  this.itemHeight = 48,
});