findRenderObject method
Walks down through component elements until a render-object element is found, returning that render object (or null when this context isn't mounted or has no render-object descendant). Does not establish a dependency.
May return null or stale geometry if called mid-build; use after
layout (e.g. from a TuiBinding.addPostFrameCallback) to read the
painted size/offset the user just saw.
Implementation
@override
RenderObject? findRenderObject() {
// A deactivated / unmounted element points at render objects whose
// geometry is either stale or about to be torn down — surface null
// instead of leaking a dangling reference.
if (_lifecycle != _ElementLifecycle.active) return null;
return _owner?.findRootRenderObject(this);
}