TDText.rich constructor
const
TDText.rich(
- InlineSpan? textSpan, {
- Font? font,
- FontWeight? fontWeight,
- FontFamily? fontFamily,
- Color textColor = Colors.black,
- Color? backgroundColor,
- bool? isTextThrough = false,
- Color? lineThroughColor = Colors.white,
- String? package,
- Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- 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);