HtmlParser constructor

HtmlParser({
  1. required Key? key,
  2. required Element htmlData,
  3. required OnTap? onLinkTap,
  4. required OnTap? onAnchorTap,
  5. required OnCssParseError? onCssParseError,
  6. required bool shrinkWrap,
  7. required Map<String, Style> style,
  8. required List<HtmlExtension> extensions,
  9. required Set<String>? doNotRenderTheseTags,
  10. required Set<String>? onlyRenderTheseTags,
  11. Html? root,
})

Implementation

HtmlParser({
  required super.key,
  required this.htmlData,
  required this.onLinkTap,
  required this.onAnchorTap,
  required this.onCssParseError,
  required this.shrinkWrap,
  required this.style,
  required this.extensions,
  required this.doNotRenderTheseTags,
  required this.onlyRenderTheseTags,
  this.root,
}) : internalOnAnchorTap = onAnchorTap ??
          (key != null ? _handleAnchorTap(key, onLinkTap) : onLinkTap);