OudsCodeText.rich constructor
- Key? key,
- Color? color,
- required OudsAnnotatedText text,
- int? maxLines,
- TextAlign? textAlign,
- TextOverflow? overflow,
- bool? softWrap,
Creates an OudsCodeText 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 text, e.g. to highlight a word or phrase.
Implementation
const OudsCodeText.rich({
super.key,
this.color,
required OudsAnnotatedText text,
this.maxLines,
this.textAlign,
this.overflow,
this.softWrap,
}) : text = '',
_annotatedText = text;