SingleLine<T>.custom constructor

const SingleLine<T>.custom({
  1. Key? key,
  2. EdgeInsets? padding,
  3. required String? name,
  4. Widget? leftView,
  5. Widget? nameWidget,
  6. ValueChanged<T>? onDropdownChanged,
  7. List<DropdownMenuItem<T>>? dropdownItems,
  8. T? dropdownValue,
  9. TextStyle? nameTxtStyle,
  10. String? centerTxt,
  11. TextStyle? centerTxtStyle,
  12. required Widget? centerWidget,
  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. Widget? rightWidget,
  32. num? radius,
})

Implementation

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