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