OudsHeadingText.rich constructor
- Key? key,
- required OudsAnnotatedText text,
- Color? color,
- OudsHeadingTextSize size = OudsHeadingTextSize.large,
- bool marker = true,
- int? maxLines,
- TextAlign? textAlign,
- TextOverflow? overflow,
- bool? softWrap,
Creates an OudsHeadingText whose content is composed of multiple spans, some of which can
be colored independently of the others. Build text with buildOudsAnnotatedText to color
part of the heading text, e.g. to highlight a word or phrase.
Implementation
const OudsHeadingText.rich({
super.key,
required OudsAnnotatedText text,
this.color,
this.size = OudsHeadingTextSize.large,
this.marker = true,
this.maxLines,
this.textAlign,
this.overflow,
this.softWrap,
}) : text = '',
_annotatedText = text;