targetElement property
The element into which the sanitized HTML should be injected.
The result of this getter may be cached so should not change over the lifetime of the component.
If there is no such element (e.g. because the component has been removed from the DOM already), it will return null.
Implementation
@override
Element? get targetElement =>
_element.children.isEmpty ? null : _element.children.single;