RichText constructor

RichText({
  1. required TextSpan text,
  2. Key? key,
  3. TextAlign textAlign = TextAlign.left,
  4. bool softWrap = true,
  5. TextOverflow overflow = TextOverflow.clip,
  6. int? maxWidth,
})

Implementation

RichText({
  required this.text,
  super.key,
  this.textAlign = TextAlign.left,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.maxWidth,
});