RenderRichText constructor

RenderRichText({
  1. required TextSpan text,
  2. int? maxLines,
  3. TextOverflow overflow = TextOverflow.clip,
})

Creates a RenderRichText with the given text and overflow configuration.

Implementation

RenderRichText({
  required TextSpan text,
  int? maxLines,
  TextOverflow overflow = TextOverflow.clip,
})  : _text = text,
      _maxLines = maxLines,
      _overflow = overflow;