TDText constructor

const TDText(
  1. dynamic data, {
  2. Font? font,
  3. FontWeight? fontWeight,
  4. FontFamily? fontFamily,
  5. Color textColor = Colors.black,
  6. Color? backgroundColor,
  7. bool? isTextThrough = false,
  8. Color? lineThroughColor = Colors.white,
  9. String? package,
  10. TextStyle? style,
  11. StrutStyle? strutStyle,
  12. TextAlign? textAlign,
  13. TextDirection? textDirection,
  14. Locale? locale,
  15. bool? softWrap,
  16. TextOverflow? overflow,
  17. double? textScaleFactor,
  18. int? maxLines,
  19. String? semanticsLabel,
  20. TextWidthBasis? textWidthBasis,
  21. TextHeightBehavior? textHeightBehavior,
  22. bool forceVerticalCenter = false,
  23. Key? key,
})

Implementation

const TDText(
    this.data, {
      this.font,
      this.fontWeight,
      this.fontFamily,
      this.textColor = Colors.black,
      this.backgroundColor,
      this.isTextThrough = false,
      this.lineThroughColor = Colors.white,
      this.package,
      this.style,
      this.strutStyle,
      this.textAlign,
      this.textDirection,
      this.locale,
      this.softWrap,
      this.overflow,
      this.textScaleFactor,
      this.maxLines,
      this.semanticsLabel,
      this.textWidthBasis,
      this.textHeightBehavior,
      this.forceVerticalCenter = false,
      Key? key,
    })  : textSpan = null,
      super(key: key);