Html.fromDom constructor

Html.fromDom({
  1. Key? key,
  2. GlobalKey<State<StatefulWidget>>? anchorKey,
  3. @required Document? document,
  4. OnTap? onLinkTap,
  5. OnTap? onAnchorTap,
  6. Map<String, CustomRender> customRender = const {},
  7. Map<ImageSourceMatcher, ImageRender> customImageRenders = const {},
  8. OnCssParseError? onCssParseError,
  9. ImageErrorListener? onImageError,
  10. OnMathError? onMathError,
  11. bool shrinkWrap = false,
  12. OnTap? onImageTap,
  13. List<String> tagsList = const [],
  14. Map<String, Style> style = const {},
  15. NavigationDelegate? navigationDelegateForIframe,
})

Implementation

Html.fromDom({
  Key? key,
  GlobalKey? anchorKey,
  @required this.document,
  this.onLinkTap,
  this.onAnchorTap,
  this.customRender = const {},
  this.customImageRenders = const {},
  this.onCssParseError,
  this.onImageError,
  this.onMathError,
  this.shrinkWrap = false,
  this.onImageTap,
  this.tagsList = const [],
  this.style = const {},
  this.navigationDelegateForIframe,
})  : data = null,
      assert(document != null),
      _anchorKey = anchorKey ?? GlobalKey(),
      super(key: key);