mounted property Null safety

bool mounted

Checks if this widget instance is still mounted to the DOM.

Implementation

bool get mounted =>
    _appNode.querySelector('[$_dataWidgetTypeId="${hashCode.toString()}"]') !=
    null;