TDText.rich constructor

const TDText.rich(
  1. InlineSpan? textSpan, {
  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. Key? key,
  11. TextStyle? style,
  12. StrutStyle? strutStyle,
  13. TextAlign? textAlign,
  14. TextDirection? textDirection,
  15. Locale? locale,
  16. bool? softWrap,
  17. TextOverflow? overflow,
  18. double? textScaleFactor,
  19. int? maxLines,
  20. String? semanticsLabel,
  21. TextWidthBasis? textWidthBasis,
  22. TextHeightBehavior? textHeightBehavior,
  23. bool forceVerticalCenter = false,
})

富文本构造方法

Implementation

const TDText.rich(
    this.textSpan, {
      this.font,
      this.fontWeight,
      this.fontFamily,
      this.textColor = Colors.black,
      this.backgroundColor,
      this.isTextThrough = false,
      this.lineThroughColor = Colors.white,
      this.package,
      Key? key,
      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,
    })  : data = null,
      super(key: key);