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, Style> style = const {}, - List<
String> tagsList = const [], - TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
Implementation
SelectableHtml.fromDom({
Key? key,
GlobalKey? anchorKey,
required this.document,
this.onLinkTap,
this.onAnchorTap,
this.onCssParseError,
this.shrinkWrap = false,
this.style = const {},
this.tagsList = const [],
this.selectionControls,
this.scrollPhysics,
}) : data = null,
assert(document != null),
_anchorKey = anchorKey ?? GlobalKey(),
super(key: key);