Text.rich constructor
- InlineSpan textSpan, {
 - Key? key,
 - TextStyle? style,
 - StrutStyle? strutStyle,
 - TextAlign? textAlign,
 - TextDirection? textDirection,
 - Locale? locale,
 - bool? softWrap,
 - TextOverflow? overflow,
 - @Deprecated('Use textScaler instead. ' 'Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. ' 'This feature was deprecated after v3.12.0-2.0.pre.') double? textScaleFactor,
 - TextScaler? textScaler,
 - int? maxLines,
 - String? semanticsLabel,
 - String? semanticsIdentifier,
 - TextWidthBasis? textWidthBasis,
 - TextHeightBehavior? textHeightBehavior,
 - Color? selectionColor,
 
Creates a text widget with a InlineSpan.
The following subclasses of InlineSpan may be used to build rich text:
- TextSpans define text and children InlineSpans.
 - WidgetSpans define embedded inline widgets.
 
See RichText which provides a lower-level way to draw text.
Implementation
const Text.rich(
  InlineSpan this.textSpan, {
  super.key,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  @Deprecated(
    'Use textScaler instead. '
    'Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. '
    'This feature was deprecated after v3.12.0-2.0.pre.',
  )
  this.textScaleFactor,
  this.textScaler,
  this.maxLines,
  this.semanticsLabel,
  this.semanticsIdentifier,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
}) : data = null,
     assert(
       textScaler == null || textScaleFactor == null,
       'textScaleFactor is deprecated and cannot be specified when textScaler is specified.',
     );