SingleLine<T> constructor

const SingleLine<T>({
  1. Key? key,
  2. EdgeInsets? padding,
  3. required IconData? iconData,
  4. String? iconUrl,
  5. ValueChanged<T>? onDropdownChanged,
  6. List<DropdownMenuItem<T>>? dropdownItems,
  7. T? dropdownValue,
  8. String? centerTxt,
  9. TextStyle? centerTxtStyle,
  10. Widget? centerWidget,
  11. String? name,
  12. TextStyle? nameTxtStyle,
  13. Widget? nameWidget,
  14. Widget? leftView,
  15. TouchTap? onTap,
  16. bool rightShow = true,
  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. Widget? rightWidget,
  32. num? radius,
})

Implementation

const SingleLine({
  Key? key,
  this.padding,
  required this.iconData,
  this.iconUrl,
  this.onDropdownChanged,
  this.dropdownItems,
  this.dropdownValue,
  this.centerTxt,
  this.centerTxtStyle,
  this.centerWidget,
  this.name,
  this.nameTxtStyle,
  this.nameWidget,
  this.leftView,
  this.onTap,
  this.rightShow = true,
  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.rightWidget,
  this.radius,
})  : assert(name == null || nameWidget == null),
      assert(centerTxt == null || centerWidget == null),
      super(key: key);