HtmlParser constructor
HtmlParser({
- required Key? key,
- required Document htmlData,
- required OnTap? onLinkTap,
- required OnTap? onAnchorTap,
- required OnTap? onImageTap,
- required OnCssParseError? onCssParseError,
- required ImageErrorListener? onImageError,
- required OnMathError? onMathError,
- required bool shrinkWrap,
- required bool selectable,
- required Map<
String, Style> style, - required Map<
String, CustomRender> customRender, - required Map<
ImageSourceMatcher, ImageRender> imageRenders, - required List<
String> tagsList, - TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
Implementation
HtmlParser({
required this.key,
required this.htmlData,
required this.onLinkTap,
required this.onAnchorTap,
required this.onImageTap,
required this.onCssParseError,
required this.onImageError,
required this.onMathError,
required this.shrinkWrap,
required this.selectable,
required this.style,
required this.customRender,
required this.imageRenders,
required this.tagsList,
this.selectionControls,
this.scrollPhysics,
}) : this._onAnchorTap = onAnchorTap != null
? onAnchorTap
: key != null
? _handleAnchorTap(key, onLinkTap)
: null,
super(key: key);