TextPlus constructor

TextPlus(
  1. String? text, {
  2. Key? key,
  3. int? maxLines,
  4. TextOverflow? textOverflow,
  5. TextAlign textAlign = TextAlign.left,
  6. TextDirection textDirection = TextDirection.ltr,
  7. Color? color = Colors.black,
  8. double? fontSize,
  9. FontWeight fontWeight = FontWeight.normal,
  10. FontStyle fontStyle = FontStyle.normal,
  11. Color? backgroundColor,
  12. double? letterSpacing,
  13. double? wordSpacing,
  14. double? height,
  15. String? fontFamily,
  16. String? mask,
  17. bool isCenter = false,
  18. bool isExpanded = false,
  19. TextDecorationPlus? textDecorationPlus,
  20. List<ShadowPlus>? textShadows,
  21. EdgeInsets padding = EdgeInsets.zero,
  22. EdgeInsets margin = EdgeInsets.zero,
  23. dynamic onTap()?,
  24. dynamic onLongPress()?,
  25. double? width,
  26. BorderPlus? backgroundBorder,
  27. List<ShadowPlus>? backgroundShadows,
  28. List<InnerShadowPlus>? backgroundInnerShadows,
  29. GradientPlus? backgroundGradient,
  30. RadiusPlus? backgroundRadius,
})

Implementation

TextPlus(
  this.text, {
  Key? key,
  this.maxLines,
  this.textOverflow,
  this.textAlign = TextAlign.left,
  this.textDirection = TextDirection.ltr,
  // style
  this.color = Colors.black,
  this.fontSize,
  this.fontWeight = FontWeight.normal,
  this.fontStyle = FontStyle.normal,
  this.backgroundColor,
  this.letterSpacing,
  this.wordSpacing,
  this.height,
  this.fontFamily,
  // custom
  this.mask,
  this.isCenter = false,
  this.isExpanded = false,
  this.textDecorationPlus,
  this.textShadows,
  this.padding = EdgeInsets.zero,
  this.margin = EdgeInsets.zero,
  this.onTap,
  this.onLongPress,
  this.width,
  this.backgroundBorder,
  this.backgroundShadows,
  this.backgroundInnerShadows,
  this.backgroundGradient,
  this.backgroundRadius,
}) : super(key: key);