Html.fromDom constructor
Html.fromDom({
- Key? key,
- GlobalKey<
State< ? anchorKey,StatefulWidget> > - @required Document? document,
- OnTap? onLinkTap,
- OnTap? onAnchorTap,
- Map<
CustomRenderMatcher, CustomRender> customRenders = const {}, - OnCssParseError? onCssParseError,
- ImageErrorListener? onImageError,
- bool shrinkWrap = false,
- OnTap? onImageTap,
- List<
String> tagsList = const [], - Map<
String, Style> style = const {},
Implementation
Html.fromDom({
super.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();