dispose method
Release any resources held by this node.
Implementation
@override
void dispose() {
parentNode?.removeChild(this);
assert(!isRendererAttached, 'Should unmount $this before calling dispose.');
super.dispose();
}
Release any resources held by this node.
@override
void dispose() {
parentNode?.removeChild(this);
assert(!isRendererAttached, 'Should unmount $this before calling dispose.');
super.dispose();
}