HTML5.fromElement constructor
HTML5.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, CSS3> style = const {},
Implementation
HTML5.fromElement({
Key? 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(),
super(key: key);