HtmlParser constructor
HtmlParser({
- required Key? key,
- required Element htmlData,
- required OnTap? onLinkTap,
- required OnTap? onAnchorTap,
- required OnTap? onImageTap,
- required OnCssParseError? onCssParseError,
- required ImageErrorListener? onImageError,
- required bool shrinkWrap,
- required bool selectable,
- required Map<
String, Style> style, - required Map<
CustomRenderMatcher, CustomRender> customRenders, - required List<
String> tagsList, - Html? root,
- TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
Implementation
HtmlParser({
required this.key,
required this.htmlData,
required this.onLinkTap,
required this.onAnchorTap,
required this.onImageTap,
required this.onCssParseError,
required this.onImageError,
required this.shrinkWrap,
required this.selectable,
required this.style,
required this.customRenders,
required this.tagsList,
this.root,
this.selectionControls,
this.scrollPhysics,
}) : internalOnAnchorTap = onAnchorTap ?? (key != null
? _handleAnchorTap(key, onLinkTap)
: onLinkTap),
super(key: key);