Html.fromDom constructor
Html.fromDom({
- Key? key,
- GlobalKey<
State< ? anchorKey,StatefulWidget> > - @required Document? document,
- OnTap? onLinkTap,
- OnTap? onAnchorTap,
- Map<
String, CustomRender> customRender = const {}, - Map<
ImageSourceMatcher, ImageRender> customImageRenders = const {}, - OnCssParseError? onCssParseError,
- ImageErrorListener? onImageError,
- OnMathError? onMathError,
- bool shrinkWrap = false,
- OnTap? onImageTap,
- List<
String> tagsList = const [], - Map<
String, Style> style = const {},
Implementation
Html.fromDom({
Key? key,
GlobalKey? anchorKey,
@required this.document,
this.onLinkTap,
this.onAnchorTap,
this.customRender = const {},
this.customImageRenders = const {},
this.onCssParseError,
this.onImageError,
this.onMathError,
this.shrinkWrap = false,
this.onImageTap,
this.tagsList = const [],
this.style = const {},
this.navigationDelegateForIframe,
}) : data = null,
assert(document != null),
_anchorKey = anchorKey ?? GlobalKey(),
super(key: key);