SelectableHtml.fromDom constructor
SelectableHtml.fromDom({
- Key? key,
- GlobalKey<
State< ? anchorKey,StatefulWidget> > - @required Document? document,
- OnTap? onLinkTap,
- OnTap? onAnchorTap,
- OnCssParseError? onCssParseError,
- bool shrinkWrap = false,
- Map<
String, CSS3> style = const {}, - Map<
CustomRenderMatcher, SelectableCustomRender> customRenders = const {}, - List<
String> tagsList = const [], - TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
Implementation
SelectableHtml.fromDom({
Key? key,
GlobalKey? anchorKey,
@required dom.Document? document,
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(document != null),
documentElement = document!.documentElement,
_anchorKey = anchorKey ?? GlobalKey(),
super(key: key);