DropDownItemStyle constructor

const DropDownItemStyle({
  1. double? width,
  2. double height = 50,
  3. TextStyle textStyle = const TextStyle(fontSize: 14, color: Colors.black),
  4. TextStyle activeTextStyle = const TextStyle(fontSize: 14, color: Colors.black),
  5. TextStyle highlightTextStyle = const TextStyle(fontSize: 14, color: Colors.black),
  6. Widget? icon,
  7. Widget? activeIcon,
  8. Widget? highlightIcon,
  9. double iconSize = 20,
  10. double activeIconSize = 20,
  11. double highlightIconSize = 20,
  12. Color iconColor = Colors.black,
  13. Color activeIconColor = Colors.black,
  14. Color highlightIconColor = Colors.black,
  15. Color backgroundColor = Colors.transparent,
  16. Color activeBackgroundColor = Colors.transparent,
  17. Color highlightBackgroundColor = Colors.transparent,
  18. BorderSide borderSide = BorderSide.none,
  19. BorderSide activeBorderSide = BorderSide.none,
  20. BorderSide highlightBorderSide = BorderSide.none,
  21. BorderRadius borderRadius = BorderRadius.zero,
  22. BorderRadius activeBorderRadius = BorderRadius.zero,
  23. BorderRadius highlightBorderRadius = BorderRadius.zero,
  24. Decoration? decoration,
  25. Decoration? activeDecoration,
  26. Decoration? highlightDecoration,
  27. EdgeInsetsGeometry? margin,
  28. EdgeInsetsGeometry padding = EdgeInsets.zero,
  29. AlignmentGeometry alignment = Alignment.center,
  30. TextAlign? textAlign,
  31. bool textExpand = false,
  32. IconPosition iconPosition = IconPosition.right,
  33. double gap = 0,
  34. double elevation = 0,
  35. CustomPainter? painter,
  36. CustomPainter? activePainter,
})

Implementation

const DropDownItemStyle({
  this.width,
  this.height = 50,
  this.textStyle = const TextStyle(fontSize: 14, color: Colors.black),
  this.activeTextStyle = const TextStyle(fontSize: 14, color: Colors.black),
  this.highlightTextStyle =
      const TextStyle(fontSize: 14, color: Colors.black),
  this.icon,
  this.activeIcon,
  this.highlightIcon,
  this.iconSize = 20,
  this.activeIconSize = 20,
  this.highlightIconSize = 20,
  this.iconColor = Colors.black,
  this.activeIconColor = Colors.black,
  this.highlightIconColor = Colors.black,
  this.backgroundColor = Colors.transparent,
  this.activeBackgroundColor = Colors.transparent,
  this.highlightBackgroundColor = Colors.transparent,
  this.borderSide = BorderSide.none,
  this.activeBorderSide = BorderSide.none,
  this.highlightBorderSide = BorderSide.none,
  this.borderRadius = BorderRadius.zero,
  this.activeBorderRadius = BorderRadius.zero,
  this.highlightBorderRadius = BorderRadius.zero,
  this.decoration,
  this.activeDecoration,
  this.highlightDecoration,
  this.margin,
  this.padding = EdgeInsets.zero,
  this.alignment = Alignment.center,
  this.textAlign,
  this.textExpand = false,
  this.iconPosition = IconPosition.right,
  this.gap = 0,
  this.elevation = 0,
  this.painter,
  this.activePainter,
});