shadowRoot property

ShadowRoot? get shadowRoot

Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise.

MDN Reference

Implementation

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