Text.rich constructor

Text.rich(
  1. TextSpan? textSpan, {
  2. Key? key,
  3. Style? style,
  4. TextAlign textAlign = TextAlign.left,
  5. bool softWrap = true,
  6. TextOverflow overflow = TextOverflow.clip,
  7. int? maxWidth,
})

Implementation

Text.rich(
  this.textSpan, {
  super.key,
  this.style,
  this.textAlign = TextAlign.left,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.maxWidth,
}) : data = null;