RenderParagraph constructor
RenderParagraph({
- required InlineSpan text,
- TextStyle style = const TextStyle(),
- TextAlignment alignment = TextAlignment.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(),
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;