SingleLine<T>.dropdown constructor

const SingleLine<T>.dropdown({
  1. Key? key,
  2. EdgeInsets? padding,
  3. required String? name,
  4. required ValueChanged<T>? onDropdownChanged,
  5. required List<DropdownMenuItem<T>>? dropdownItems,
  6. T? dropdownValue,
  7. TextStyle? nameTxtStyle,
  8. String? centerTxt,
  9. TextStyle? centerTxtStyle,
  10. Widget? centerWidget,
  11. Widget? nameWidget,
  12. Widget? leftView,
  13. IconData? iconData,
  14. String? iconUrl,
  15. TouchTap? onTap,
  16. bool rightShow = false,
  17. bool? isPrimary,
  18. String? rightTxt,
  19. TextStyle? rightTxtStyle,
  20. String? url,
  21. num? urlSize,
  22. Decoration? decoration,
  23. num? minHeight,
  24. num? iconHeight,
  25. num? nameLeftPadding,
  26. num? nameRightPadding,
  27. Color? backgroundColor,
  28. IconData? rightIconData,
  29. num? leftRight,
  30. num? topBottom,
  31. num? radius,
})

Implementation

const SingleLine.dropdown({
  Key? key,
  this.padding,
  required this.name,
  required this.onDropdownChanged,
  required this.dropdownItems,
  this.dropdownValue,
  this.nameTxtStyle,
  this.centerTxt,
  this.centerTxtStyle,
  this.centerWidget,
  this.nameWidget,
  this.leftView,
  this.iconData,
  this.iconUrl,
  this.onTap,
  this.rightShow = false,
  this.isPrimary,
  this.rightTxt,
  this.rightTxtStyle,
  this.url,
  this.urlSize,
  this.decoration,
  this.minHeight,
  this.iconHeight,
  this.nameLeftPadding,
  this.nameRightPadding,
  this.backgroundColor,
  this.rightIconData,
  this.leftRight,
  this.topBottom,
  this.radius,
})  : assert(name == null || nameWidget == null),
      assert(centerTxt == null || centerWidget == null),
      this.rightWidget = null,
      super(key: key);