SelectableHtml.fromDom constructor

SelectableHtml.fromDom({
  1. Key? key,
  2. GlobalKey<State<StatefulWidget>>? anchorKey,
  3. @required Document? document,
  4. OnTap? onLinkTap,
  5. OnTap? onAnchorTap,
  6. OnCssParseError? onCssParseError,
  7. bool shrinkWrap = false,
  8. Map<String, Style> style = const {},
  9. Map<CustomRenderMatcher, SelectableCustomRender> customRenders = const {},
  10. List<String> tagsList = const [],
  11. TextSelectionControls? selectionControls,
  12. 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);