SelectableHtml.fromElement constructor
SelectableHtml.fromElement({
- Key? key,
- GlobalKey<
State< ? anchorKey,StatefulWidget> > - @required Element? documentElement,
- OnTap? onLinkTap,
- OnTap? onAnchorTap,
- OnCssParseError? onCssParseError,
- bool shrinkWrap = false,
- Map<
String, Style> style = const {}, - Map<
CustomRenderMatcher, SelectableCustomRender> customRenders = const {}, - List<
String> tagsList = const [], - TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
Implementation
SelectableHtml.fromElement({
super.key,
GlobalKey? anchorKey,
@required this.documentElement,
this.onLinkTap,
this.onAnchorTap,
this.onCssParseError,
this.shrinkWrap = false,
this.style = const {},
this.customRenders = const {},
this.tagsList = const [],
this.selectionControls,
this.scrollPhysics,
}) : data = null,
assert(documentElement != null),
_anchorKey = anchorKey ?? GlobalKey();