openOrClosedShadowRoot method

Map openOrClosedShadowRoot(
  1. JSObject element
)

Gets the open shadow root or the closed shadow root hosted by the specified element. If the element doesn't attach the shadow root, it will return null. returns See https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot

Implementation

Map openOrClosedShadowRoot(JSObject element) {
  return $js.chrome.dom.openOrClosedShadowRoot(element).toDartMap();
}