query method
Queries for an element within this component's shadow root or element.
First checks the shadow root (if available), then falls back to the element itself.
Implementation
web.Element? query(String selector) {
if (_shadowRoot != null) {
return _shadowRoot!.querySelector(selector);
}
return _element?.querySelector(selector);
}