RenderParagraph constructor
RenderParagraph({
- required InlineSpan text,
- TextStyle style = const TextStyle(),
- TextAlign alignment = TextAlign.left,
- int? maxLines,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- 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;