Text.rich constructor
const
Text.rich(})
Shows spans, each in its style merged onto style, as one
paragraph: a line breaks between spans as it does inside one.
Text.rich(['Error: '.bold.fg(Color.red), const Span('not found')])
Implementation
const Text.rich(
List<Span> this.spans, {
super.key,
this.style = const Style(),
this.wrap = TextWrap.word,
this.overflow = TextOverflow.clip,
this.maxLines,
this.textAlign = TextAlign.left,
this.onLinkTap,
}) : data = null;