RichText constructor

const RichText({
  1. required TextSpan text,
  2. bool wrap = true,
  3. TextAlign textAlign = TextAlign.left,
  4. int? maxLines,
})

Creates a RichText rendering widget configuring layout behavior around a root text span.

Implementation

const RichText({
  required this.text,
  this.wrap = true,
  this.textAlign = TextAlign.left,
  this.maxLines,
});