Html.fromDom constructor
Html.fromDom({
- Key? key,
- GlobalKey<
State< ? anchorKey,StatefulWidget> > - required Document? document,
- OnTap? onLinkTap,
- OnTap? onAnchorTap,
- List<
HtmlExtension> extensions = const [], - OnCssParseError? onCssParseError,
- bool shrinkWrap = false,
- Set<
String> ? doNotRenderTheseTags, - Set<
String> ? onlyRenderTheseTags, - Map<
String, Style> style = const {},
Implementation
Html.fromDom({
super.key,
GlobalKey? anchorKey,
required dom.Document? document,
this.onLinkTap,
this.onAnchorTap,
this.extensions = const [],
this.onCssParseError,
this.shrinkWrap = false,
this.doNotRenderTheseTags,
this.onlyRenderTheseTags,
this.style = const {},
}) : data = null,
assert(document != null),
documentElement = document!.documentElement,
_anchorKey = anchorKey ?? GlobalKey();