RenderText constructor
RenderText({
- required String text,
- TextStyle? style,
- bool softWrap = true,
- int? maxLines,
- TextOverflow overflow = TextOverflow.clip,
Creates a RenderText with the given text content and display configuration.
Implementation
RenderText({
required String text,
TextStyle? style,
bool softWrap = true,
int? maxLines,
TextOverflow overflow = TextOverflow.clip,
}) : _text = text,
_style = style,
_softWrap = softWrap,
_maxLines = maxLines,
_overflow = overflow;