LightHtmlTextRenderer constructor

LightHtmlTextRenderer(
  1. String html,
  2. RendererStyle rendererStyle,
  3. int? maxLength,
  4. int? maxLines,
  5. List<RichTextPlaceholder> placeholders,
  6. String placeholderMarker,
  7. bool ignoreLinebreaks,
)

Implementation

LightHtmlTextRenderer(
  String html,
  this.rendererStyle,
  this.maxLength,
  this.maxLines,
  this.placeholders,
  this.placeholderMarker,
  this.ignoreLinebreaks,
) {
  _initFontStyles();

  _flatten(LightHtmlParserV3().parse(html));

  _render();
}