Html.fromElement constructor

Html.fromElement({
  1. Key? key,
  2. GlobalKey<State<StatefulWidget>>? anchorKey,
  3. @required Element? documentElement,
  4. OnTap? onLinkTap,
  5. OnTap? onAnchorTap,
  6. List<HtmlExtension> extensions = const [],
  7. OnCssParseError? onCssParseError,
  8. bool shrinkWrap = false,
  9. Set<String>? doNotRenderTheseTags,
  10. Set<String>? onlyRenderTheseTags,
  11. Map<String, Style> style = const {},
})

Implementation

Html.fromElement({
  Key? key,
  GlobalKey? anchorKey,
  @required this.documentElement,
  this.onLinkTap,
  this.onAnchorTap,
  this.extensions = const [],
  this.onCssParseError,
  this.shrinkWrap = false,
  this.doNotRenderTheseTags,
  this.onlyRenderTheseTags,
  this.style = const {},
})  : data = null,
      assert(documentElement != null),
      _anchorKey = anchorKey ?? GlobalKey(),
      super(key: key);