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. List<String> tagsList = const [],
  10. TextSelectionControls? selectionControls,
  11. 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);