HubbleText.rich constructor

const HubbleText.rich(
  1. List<InlineSpan>? children, {
  2. Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool? softWrap,
  9. TextOverflow? overflow,
  10. double? textScaleFactor = 1,
  11. int? maxLines,
  12. String? semanticsLabel,
  13. TextWidthBasis? textWidthBasis = TextWidthBasis.parent,
  14. TextHeightBehavior? textHeightBehavior = const TextHeightBehavior(applyHeightToFirstAscent: false, leadingDistribution: TextLeadingDistribution.proportional, applyHeightToLastDescent: true),
  15. InlineSpan? textSpan,
})

Implementation

const HubbleText.rich(
  this.children, {
  super.key,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor = 1,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis = TextWidthBasis.parent,
  this.textHeightBehavior = const TextHeightBehavior(
    applyHeightToFirstAscent: false,
    leadingDistribution: TextLeadingDistribution.proportional,
    applyHeightToLastDescent: true,
  ),
  this.textSpan,
}) : data = null;