RichText constructor
const
RichText({
- Key? key,
- required TextSpan text,
- int? maxLines,
- TextOverflow overflow = TextOverflow.clip,
Creates a RichText widget with the given styled text span.
Implementation
const RichText({
super.key,
required this.text,
this.maxLines,
this.overflow = TextOverflow.clip,
});