RenderParagraph constructor

RenderParagraph({
  1. required InlineSpan text,
  2. TextStyle style = const TextStyle(),
  3. TextAlign alignment = TextAlign.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(),
  TextAlign alignment = TextAlign.left,
  int? maxLines,
  bool softWrap = true,
  TextOverflow overflow = TextOverflow.clip,
  TextHighlight? selection,
}) : _text = snapshotInlineSpan(text),
     _style = style,
     _alignment = alignment,
     _maxLines = _validatedMaxLines(maxLines),
     _softWrap = softWrap,
     _overflow = overflow,
     _selection = selection;