isAncestorOf method
Implementation
bool isAncestorOf(RenderStyle childRenderStyle) {
RenderStyle? parentRenderStyle = childRenderStyle.parent;
while(parentRenderStyle != null) {
if (parentRenderStyle == this) {
return true;
}
parentRenderStyle = parentRenderStyle.parent;
}
return false;
}