ThemedText constructor
ThemedText(
- String text, {
- Key? key,
- dynamic type,
- dynamic emphasis,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
Implementation
ThemedText(
this.text,
{
super.key,
type,
emphasis,
this.strutStyle,
this.textAlign,
this.textDirection,
this.locale,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
this.textWidthBasis,
this.textHeightBehavior
}
){
this.emphasis = emphasis ?? Emphasis.NONE;
this.type = type ?? ThemeGroupType.MOM;
}