ThemedText constructor

ThemedText(
  1. String text, {
  2. Key? key,
  3. dynamic type,
  4. dynamic emphasis,
  5. StrutStyle? strutStyle,
  6. TextAlign? textAlign,
  7. TextDirection? textDirection,
  8. Locale? locale,
  9. bool? softWrap,
  10. TextOverflow? overflow,
  11. double? textScaleFactor,
  12. int? maxLines,
  13. String? semanticsLabel,
  14. TextWidthBasis? textWidthBasis,
  15. 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;
}