HtmlParser constructor

HtmlParser({
  1. required Key? key,
  2. required Document htmlData,
  3. required OnTap? onLinkTap,
  4. required OnTap? onAnchorTap,
  5. required OnTap? onImageTap,
  6. required OnCssParseError? onCssParseError,
  7. required ImageErrorListener? onImageError,
  8. required OnMathError? onMathError,
  9. required bool shrinkWrap,
  10. required bool selectable,
  11. required Map<String, Style> style,
  12. required Map<String, CustomRender> customRender,
  13. required Map<ImageSourceMatcher, ImageRender> imageRenders,
  14. required List<String> tagsList,
  15. required NavigationDelegate? navigationDelegateForIframe,
  16. TextSelectionControls? selectionControls,
  17. 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.onMathError,
  required this.shrinkWrap,
  required this.selectable,
  required this.style,
  required this.customRender,
  required this.imageRenders,
  required this.tagsList,
  required this.navigationDelegateForIframe,
  this.selectionControls,
  this.scrollPhysics,
})  : this._onAnchorTap = onAnchorTap != null
        ? onAnchorTap
        : key != null
            ? _handleAnchorTap(key, onLinkTap)
            : null,
      super(key: key);