LightHtmlTextRenderer constructor
LightHtmlTextRenderer(
- String html,
- RendererStyle rendererStyle,
- int? maxLength,
- int? maxLines,
- List<
RichTextPlaceholder> placeholders, - String placeholderMarker,
- bool ignoreLinebreaks,
Implementation
LightHtmlTextRenderer(
String html,
this.rendererStyle,
this.maxLength,
this.maxLines,
this.placeholders,
this.placeholderMarker,
this.ignoreLinebreaks,
) {
_initFontStyles();
_flatten(LightHtmlParserV3().parse(html));
_render();
}