RichText constructor

const RichText({
  1. Key? key,
  2. required TextSpan text,
  3. int? maxLines,
  4. 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,
});