DecoratedDropdownButton constructor

DecoratedDropdownButton({
  1. Key? key,
  2. required String value,
  3. required List<DropdownMenuItem<String>> items,
  4. required void onChanged(
    1. Object? value
    ),
  5. BorderRadius? borderRadius,
  6. Border? border,
  7. Color? color,
  8. LinearGradient? gradient,
  9. List<BoxShadow>? boxShadow,
  10. Icon icon = const Icon(Icons.arrow_drop_down),
  11. EdgeInsets iconPadding = const EdgeInsets.only(left: 20),
  12. BoxShape shape = BoxShape.rectangle,
  13. EdgeInsets padding = const EdgeInsets.only(left: 20, right: 20),
  14. TextStyle? style,
  15. Widget? underline,
  16. bool isExpanded = true,
  17. Color? iconEnableColor,
  18. Color? iconDisableColor,
  19. Color? dropdownColor,
  20. Color? focusColor,
  21. bool autoFocus = false,
  22. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  23. FocusNode? node,
  24. Widget? hint,
  25. Widget? disabledHint,
})

Implementation

DecoratedDropdownButton(
   {Key? key,
      required this.value,
      required this.items,
      required this.onChanged,
      this.borderRadius,
      this.border,
      this.color,
      this.gradient,
      this.boxShadow,
      this.icon = const Icon(Icons.arrow_drop_down),
      this.iconPadding = const EdgeInsets.only(left:20),
      this.shape = BoxShape.rectangle,
      this.padding = const EdgeInsets.only(left:20, right:20),
      this.style,
      this.underline,
      this.isExpanded = true,
      this.iconEnableColor,
      this.iconDisableColor,
      this.dropdownColor,
      this.focusColor,
      this.autoFocus = false,
      this.alignment = AlignmentDirectional.centerStart,
      this.node,
      this.hint,
      this.disabledHint,
   }
) : super(key: key);