HubbleText.rich constructor
const
HubbleText.rich(
- List<
InlineSpan> ? children, { - Key? key,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor = 1,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior = const TextHeightBehavior(applyHeightToFirstAscent: false, leadingDistribution: TextLeadingDistribution.proportional, applyHeightToLastDescent: true),
- 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;