HtmlParser constructor
HtmlParser({
- required Key? key,
- required Element htmlData,
- required OnTap? onLinkTap,
- required OnTap? onAnchorTap,
- required OnCssParseError? onCssParseError,
- required bool shrinkWrap,
- required Map<
String, Style> style, - required List<
HtmlExtension> extensions, - required Set<
String> ? doNotRenderTheseTags, - required Set<
String> ? onlyRenderTheseTags, - 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);