Html.fromElement constructor

Html.fromElement({
  1. Key? key,
  2. GlobalKey<State<StatefulWidget>>? anchorKey,
  3. @required Element? documentElement,
  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.fromElement({
  super.key,
  GlobalKey? anchorKey,
  @required this.documentElement,
  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(documentElement != null),
      _anchorKey = anchorKey ?? GlobalKey();