DDSLabel constructor

const DDSLabel({
  1. Key? key,
  2. required LabelsType type,
  3. required String text,
  4. required LabelSize size,
  5. bool required = false,
  6. Color? backgroundColor,
  7. Color? borderColor,
  8. Color? labelColor,
  9. Color? cursorColor,
  10. LabelShape shape = LabelShape.rectangle,
  11. Icon? prefixIcon,
  12. Icon? suffixIcon,
  13. Color? softContainerColor,
  14. double? width,
  15. double? height,
  16. String? errorText,
  17. TextAlign? textAlign,
  18. double? fontSize = 20,
  19. FontWeight? fontWeight = FontWeight.bold,
  20. double? letterSpacing,
  21. double? lineHeight,
  22. TextStyle? style,
  23. Color? color,
  24. Color? requiredSymbolColor,
  25. LabelsVariant variant = LabelsVariant.filled,
})

Implementation

const DDSLabel({
  Key? key,
  required this.type,
  required this.text,
  required this.size,
  this.required = false,
  this.backgroundColor,
  this.borderColor,
  this.labelColor,
  this.cursorColor,
  this.shape = LabelShape.rectangle,
  this.prefixIcon,
  this.suffixIcon,
  this.softContainerColor,
  this.width,
  this.height,
  this.errorText,
  this.textAlign,
  this.fontSize = 20,
  this.fontWeight = FontWeight.bold,
  this.letterSpacing,
  this.lineHeight,
  this.style,
  this.color,
  this.requiredSymbolColor,
  this.variant = LabelsVariant.filled,
}) : super(key: key);