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<CustomRenderMatcher, CustomRender> customRenders = const {},
  7. OnCssParseError? onCssParseError,
  8. ImageErrorListener? onImageError,
  9. bool shrinkWrap = false,
  10. OnTap? onImageTap,
  11. List<String> tagsList = const [],
  12. Map<String, Style> style = const {},
})

Implementation

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