description

# ShadowRoot class Null safety

Inheritance
  - Object
  - EventTarget
  - Node
  - DocumentFragment
  - ShadowRoot
Implemented types
  - DocumentOrShadowRoot
Annotations
  - @SupportedBrowser(SupportedBrowser.CHROME, '26')
  - @Native("ShadowRoot")

## Properties

activeElement → Element?
  read-only, override
applyAuthorStyles ↔ bool
  read / write
baseUri → String?
  @JSName('baseURI'), read-only, inherited
childNodes → List<Node>
  A list of this node's children. [...]
  @Creates('NodeList'), @Returns('NodeList'), read-only, inherited
children ↔ List<Element>
  read / write, inherited
delegatesFocus → bool?
  read-only
firstChild → Node?
  The first child of this node. [...]
  read-only, inherited
fullscreenElement → Element?
  read-only, override
hashCode → int
  The hash code for this object. [...]
  read-only, inherited
host → Element?
  read-only
innerHtml ↔ String?
  @JSName('innerHTML'), read / write, override
isConnected → bool?
  read-only, inherited
lastChild → Node?
  The last child of this node. [...]
  read-only, inherited
mode → String?
  read-only
nextNode → Node?
  The next sibling node. [...]
  @JSName('nextSibling'), read-only, inherited
nodeName → String?
  The name of this node. [...]
  read-only, inherited
nodes ↔ List<Node>
  A modifiable list of this node's children.
  read / write, inherited
nodeType → int
  The type of node. [...]
  read-only, inherited
nodeValue → String?
  The value of this node. [...]
  read-only, inherited
olderShadowRoot → ShadowRoot?
  read-only
on → Events
  This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
  read-only, inherited
ownerDocument → Document?
  The document this node belongs to. [...]
  read-only, inherited
parent → Element?
  The parent element of this node. [...]
  @JSName('parentElement'), read-only, inherited
parentNode → Node?
  The parent node of this node. [...]
  read-only, inherited
pointerLockElement → Element?
  read-only, override
previousNode → Node?
  The previous sibling node. [...]
  @JSName('previousSibling'), read-only, inherited
resetStyleInheritance ↔ bool
  read / write
runtimeType → Type
  A representation of the runtime type of the object.
  read-only, inherited
styleSheets → List<StyleSheet>?
  @Creates('_StyleSheetList'), @Returns('_StyleSheetList'), read-only, override
text ↔ String?
  All text within this node and its descendents. [...]
  @JSName('textContent'), read / write, inherited

## Methods

addEventListener(String type, EventListener? listener, [bool? useCapture]) → void
  inherited
append(Node node) → Node
  Adds a node to the end of the child nodes list of this node. [...]
  @JSName('appendChild'), inherited
appendHtml(String text, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void
  Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
  inherited
appendText(String text) → void
  Adds the specified text as a text node after the last child of this document fragment.
  inherited
clone(bool? deep) → Node
  Returns a copy of this node. [...]
  @JSName('cloneNode'), inherited
contains(Node? other) → bool
  Returns true if this node contains the specified node. [...]
  inherited
dispatchEvent(Event event) → bool
  inherited
elementFromPoint(int x, int y) → Element?
  override
elementsFromPoint(int x, int y) → List<Element>
  override
getElementById(String elementId) → Element?
  inherited
getRootNode([Map? options]) → Node
  inherited
getSelection() → Selection?
  override
hasChildNodes() → bool
  Returns true if this node has any children. [...]
  inherited
insertAllBefore(Iterable<Node> newNodes, Node refChild) → void
  Inserts all of the nodes into this node directly before refChild. [...]
  inherited
insertBefore(Node node, Node? child) → Node
  Inserts all of the nodes into this node directly before refChild. [...]
  inherited
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a non-existent method or property is accessed. [...]
  inherited
querySelector(String selectors) → Element?
  Finds the first descendant element of this document fragment that matches the specified group of selectors. [...]
  inherited
querySelectorAll<T extends Element>(String selectors) → ElementList<T>
  Finds all descendant elements of this document fragment that match the specified group of selectors. [...]
  inherited
remove() → void
  Removes this node from the DOM.
  inherited
removeEventListener(String type, EventListener? listener, [bool? useCapture]) → void
  inherited
replaceWith(Node otherNode) → Node
  Replaces this node with another node.
  inherited
setInnerHtml(String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void
  inherited
toString() → String
  Print out a String representation of this Node.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator. [...]
  inherited

## Static Properties

supported → bool
  read-only