HtmlParser constructor

HtmlParser({
  1. required Key? key,
  2. required Element htmlData,
  3. required OnTap? onLinkTap,
  4. required OnTap? onAnchorTap,
  5. required OnTap? onImageTap,
  6. required OnCssParseError? onCssParseError,
  7. required ImageErrorListener? onImageError,
  8. required bool shrinkWrap,
  9. required bool selectable,
  10. required Map<String, Style> style,
  11. required Map<CustomRenderMatcher, CustomRender> customRenders,
  12. required List<String> tagsList,
  13. Html? root,
  14. TextSelectionControls? selectionControls,
  15. 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);