SelectableHtml.fromElement constructor

SelectableHtml.fromElement({
  1. Key? key,
  2. GlobalKey<State<StatefulWidget>>? anchorKey,
  3. @required Element? documentElement,
  4. OnTap? onLinkTap,
  5. OnTap? onAnchorTap,
  6. OnCssParseError? onCssParseError,
  7. bool shrinkWrap = false,
  8. Map<String, CSS3> style = const {},
  9. Map<CustomRenderMatcher, SelectableCustomRender> customRenders = const {},
  10. List<String> tagsList = const [],
  11. TextSelectionControls? selectionControls,
  12. ScrollPhysics? scrollPhysics,
})

Implementation

SelectableHtml.fromElement({
  Key? 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(),
      super(key: key);