dispose method
Dispose renderObject, but not do anything.
Implementation
@override
void dispose() {
super.dispose();
if (isRendererAttached) {
detach();
}
RenderBoxModel? _renderBoxModel = renderBoxModel;
Element? _parentElement = parentElement;
// Call dispose method of renderBoxModel when GC auto dispose element
if (_renderBoxModel != null) {
_renderBoxModel.dispose();
}
if (_parentElement != null) {
_parentElement.removeChild(this);
}
style.dispose();
properties.clear();
// Remove native reference.
_nativeMap.remove(nativeElementPtr.address);
}