RenderParagraph constructor

RenderParagraph({
  1. required InlineSpan text,
  2. TextStyle style = const TextStyle(),
  3. TextAlignment alignment = TextAlignment.left,
  4. int? maxLines,
  5. bool softWrap = true,
  6. TextOverflow overflow = TextOverflow.clip,
  7. TextHighlight? selection,
})

Creates a render paragraph.

Implementation

RenderParagraph({
  required InlineSpan text,
  TextStyle style = const TextStyle(),
  TextAlignment alignment = TextAlignment.left,
  int? maxLines,
  bool softWrap = true,
  TextOverflow overflow = TextOverflow.clip,
  TextHighlight? selection,
}) : _text = text,
     _style = style,
     _alignment = alignment,
     _maxLines = maxLines,
     _softWrap = softWrap,
     _overflow = overflow,
     _selection = selection;