Html.fromElement constructor
Html.fromElement({
- Key? key,
- GlobalKey<
State< ? anchorKey,StatefulWidget> > - @required Element? documentElement,
- 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.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);