TDText constructor
const
TDText(
- dynamic data, {
- Font? font,
- FontWeight? fontWeight,
- FontFamily? fontFamily,
- Color textColor = Colors.black,
- Color? backgroundColor,
- bool? isTextThrough = false,
- Color? lineThroughColor = Colors.white,
- String? package,
- 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,
- 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);