shadowRoot property

ShadowRoot? get shadowRoot

Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.

MDN Reference

Implementation

_i3.ShadowRoot? get shadowRoot => _i4.getProperty(
      this,
      'shadowRoot',
    );